java »» Security »
Recent update: 2008-5-9

Special char

852 byte By calimoxoa at 2008-3-5
Hello,I'm trying to authenticate a user against Active Directory with Java. It works well but when i'm trying to use special characters (like ? ? ? in the password, the kerberos logon fails. Do i have to encode my string in another format ? Does kerberos support these char ?The code: public ...

Problem incorporating Single-Signon Using MS Active Directory

2157 byte By harveyFa at 2008-3-3
Hello:I am using j2sdk1.4.2_07 and attempting to incorporate single-signon. There is a very nice article describing all of the steps necessary @ http://e-docs.bea.com/wls/docs90/secmanage/sso.htmlMy problem is at the final step which uses the kinit utility to verify Kerberos authentication is ...

Kerberos authentication for RMI clients?

413 byte By kapilgupta77a at 2008-3-1
Hi,How can I use Kerberos authentication for my RMI clients? I have exposed my remote APIs and the clients should authenticate themselves and pass their security context before each call. Is there any example, tutorial available for this? The example given in Java SDK demonstrate message ...

Integraing java web appliaction wioth JOSSO

454 byte By Kishorea at 2008-2-22
Hi,Am using JOSSO and very new to this technology. I followed the steps as given in the guidelines page.After configuring my application, when executing am getting a message like this "Invalid Authentication Information" . I dont know why it is displaying this error.I followed exactly the ...

Unsupported SSL message version

1771 byte By georica at 2008-2-22
I have implemented a client for secure file exchange over HTTPS . Everything works fine, except that I occasionally get this SSLProtocolException: Unsupported SSL message version. This only happens during uploads and only if an upload immediately follows a download. And it's not consistent at ...

Pre-authentication information was invalid (24)

5572 byte By JCDentona at 2008-2-22
Hi all,im going to be really desperate from this error message during the authentization to the Win2003 server where the Active Directory is running ... Im using Krb5LoginModule. - Our administrator of the AD service has enabled DES encryption at the tested account. - Im sure that entered ...

SSO via Java in a MS world AD (ActiveDirecory and IE)

1572 byte By henoc.aa at 2008-2-20
Hi every one,I come to redefine my previous post, maybe I wasn't clear enough,that's why i seem to get no help...do some of you know how i can decode and handle myself SSO with AD ?To be more precise , I've already setup an clean config :An AD server (W2K3) on comupter "Main",an host for my ...

Granting custom ClassLoader construction

690 byte By youview_support at 2008-2-14
Hey.I've sprent pretty much all day reading and experimenting with the security stuff surrounding signed applets, it all seems fine except one ickle thing. I can't figure out how to get that popup security warning window asking the user to verify that it is ok for the applet to be granted ...

GSS-Kerberos authentication failure:Identifier doesn't match expected value

3488 byte By kapilgupta77a at 2008-2-11
Hi,Am trying to use Java GSS Api(JDK 1.5) to perform kerberos authentication on a Windows 2003 server. Am following the steps specified in JDK docs.Am receiving following error while calling login on LoginContextDebug is true storeKey true useTicketCache false useKeyTab false doNotPrompt false ...

some simple questions

1643 byte By laasunde at 2008-2-11
If I declare setBounds in mainprogram class I get the correct window but the submenu's are Blocked (isnt displayed - the submens' work fine if I remove setbounds line but then JFrame is very small again)I've tryed to enter setBounds() into the XXX class but that has no effect on the size of ...

how to use mysql as kerberos database?

419 byte By Sudhir_nimavata at 2008-2-10
Hi.... Im trying to develope SSO solution for our portals..... i found, currently on windows environment only Active Directory. can be used as kerberos database.... but our users profile are stored in my sql database.. is it possible to use kerberos to authenticate users again mysql ...

signed applets in IE

841 byte By blackcrow2 at 2008-2-8
Hi,I have a problem with signed applets in IE. I#m using JDeveloper to develop a simple applet which needs to connect to database in order to perform certain tasks. when I try to use self-signed cab files - I get error "load class --myClassName-- not found". If I have plug-in code in html page ...

HELP!! "Checksum failed" & "Integrity check on decrypted field failed "

8972 byte By yulu81a at 2008-2-7
I hope this is a newbie question for you guys out there since I've been googling for a solution for days but no luck so far. I am trying to learn JAAS programming and got started from a very simple example where a client authenticate to kerberos and send messages to a echo server. I am using ...

How to make NT Service for Tomcat(for HTTPS)

169 byte By gabriel_kardos at 2008-2-7
Hi all,Could u pls tell me how to make or configured NT service for tomcat for Https or SSL enabled. Pls provide configuration document if possible.

why checksum failed comes , if AD and webserver are in different machine

591 byte By srini.ammaia at 2008-2-7
Hi, Actually i have created a web application uses GSSAPI(java1.6) . Implemented SPNEGO in the web application.. But the problem is , if AD(Active Directory windows 2003) and webserver (tomcat) is in same machine, my application is working properly when i browser through the IE. But the same ...

is there any example malicious code avaliable?

257 byte By Madjessiea at 2008-2-6
dear all,can i ask u to do me a favor to help me find a part of example malicious source code that is still able to execute despite Java抯 security measures cause i need it as a example in my report. i can't find any on google. thanks so much.

Authentification with Java, PHP, .htaccess

1018 byte By SolarOfBAUD at 2008-2-6
Hi there,I am thinking about creating a Java project that requires some authentification routines.Users (which are given a unique user ID) are employing a client software (Java) that retrieves specific data from a webserver (available ressources HTML, SSI, PHP, .htaccess).A user should be able ...

mod_auth_kerb and Kerberos

541 byte By VidyaVa at 2008-2-4
Hi, I currently have Apache 2.2.4 with mod_auth_kerb 5.3 running on Linux. I followed the instructions in http://www.grolmsnet.de/kerbtut/ to setup authentication against windows 2000 as KDC. I also configured IE to support SPNEGO so that i can do transparent authentication. Everything works ...

PKCS12 keystore and toDerInputStream rejection.

844 byte By cityzen_2000 at 2008-2-2
Hi all,I am using Java 1.2.2 with the JSSE 1.0.2 extension installed. I have what I am fairly sure is a PKCS12 keystore generated by an AS400 which I am trying to load - code snippet below:KeyStore ks = KeyStore.getInstance("PKCS12", "SunJSSE");ks.load(new FileInputStream(keystoreName), ...

Kerberos & jcfis

1562 byte By deveshRanjana at 2008-2-2
I am developing a single sign-on module for our company's Intranet site. I am using jcfis extended version, which supports Kerberos authentication. It requires a krb5.ini file in c:/winnt directory. I am using AuthenticationFilter class which will autheticate a request. I have Tomcat on my ...

Kerberos Security

310 byte By DanDia at 2008-2-1
Please, I am beginner with respect to the kerberos protocol and have some doubts of its use:1) Is Kerberos security suitable for financial applications?2) What are the advantages of kerberos with respect to SSL?3) Does Java provide full support for kerberos?Thank ...

How to pass kerberos ticket at api level?

868 byte By kapilgupta77a at 2008-1-28
Hi,Am relatively new in the domain of Java Security, JAAS and JGSS. After reading the tutorials and examples, I was able to do authentication and message transfer using Kerberos LoginModule. All the examples demonstrates message transfer and credential passing at socket level.But in normal ...

KDC has no support for encryption type(14)

532 byte By Eaglesa at 2008-1-27
Hiii, i am trying to search my ldap, i am able to connect using kerberos, butwhen i perform ldap serach i am getting the below error messagejavax.naming.AuthenticationException: GSSAPI [Root exception is javax.security.sasl.SaslException: GSS initiate failed [Caused by GSSException: No valid ...

AD Kerberos Ticket authentication

2421 byte By joseDeva at 2008-1-26
Hi,I have a pair of questions about authentication/validation of Kerberos tickets against Active Directory.I needed to validate a Kerberos Ticket obtained in a login to an Active Directory. I have done so with the next steps.a) I have modified the Krb5LoginModule so as to create the Credentials ...

Transferring SPENGO token via a web service call or a servlet

1044 byte By SecurityTyroa at 2008-1-25
Hi,In the examples I have seen, a SPENGO token is transferred from client to server via sockets. Once the token is obtained,GSS-APi calls like the following can be called to extract the userIdfrom the SPENGO token. In the code below,innerContextToken would be obtained after some socket based ...

Welcome to...

381 byte By cotton.ma at 2008-1-25
<h1>My Web Page</h1></td></tr></span></table></td></tr></span></table></td></tr></span></table></td></tr></span></table></td></tr></span></table><h1>This ...

UTF-8 data handling by GSS

326 byte By sidsa at 2008-1-21
We have a setup with windows2000 and Kerberos/JGSS. Can someone provide me with the information as to what additional needs to be done so as to be able to authenticate a username given in UTF-8 data. The user authentication for ascii characters succeeds for me but fails while I enter usename ...

get User name

309 byte By prabodyaa at 2008-1-13
Hi All,I have configured mod_auth_kerb with apache. After kerberos authentication I am not able to get user name that is authenticated.In Apaches error log file the name of the user got printed.Can anybody tell me how to get it?Please guide ...

only existing users: Pre-authentication information was invalid (24) error

1261 byte By Farmington1965a at 2008-1-13
Our application is java based, and we use JAAS to allow authentication for the users though Active Directory.In particular we alwyas encourage our prospect clients to use Krb5LoginModule.We would1. add new user to AD , set DES for the account, reset the password2.setspn -A ...

SOAP security header causes JGSS Kerberos login to fail ?!

1130 byte By Steve8000a at 2008-1-13
Hi guys,I had a similar post in this subject before. Though got no reply. I guess the question was not clear. I could trace the prblem a bit more .. Any clue to help me find the source of problem is really appreciated !I have developed a client and a web service ( Axis 1.4 + tomcat 5).Client ...

Krb5LoginModule with useTicketCache=true on Vista

6069 byte By chiodoniaa at 2008-1-12
I've to port a Java SSO client (working correctly on W2K) on Vista.Dispite having set allowtgtsessionkey on Vista, the client seam not to be able to acquire the session key. With a network sniffer on the client I get:No.TimeSourceDestinationProtocol Info1713 6.357615138.191.82.26 10.168.24.44 ...

kinit: KRB5 error code 52 while getting initial credentials

1371 byte By nub99a at 2008-1-10
All,I'm getting the following error on a Solaris 8 machine:kinit: KRB5 error code 52 while getting initial credentialsSo far my analysis shows this error to indicate the following:0x34 - KRB_ERR_RESPONSE_TOO_BIG - Too much dataAccording to a number of forums, some inheriant limitations exist ...

Integrated Windows Domian Authentication ?

326 byte By mahesh.komuravellia at 2008-1-9
Hello Dudes,Can anybody tell the way how to develop an application with integrated windows domain authentication ? (By using Java)Help appriciated.And i don't know is it the correct forum to post. If it is not correct forum please reply me with links to the correct forums.Thanks in ...

Kerberos windows desctop SSO

726 byte By Laurtsa at 2008-1-9
Hi!The problem is in web application.The customer claims that this is not Kerberos implementation when the user has to write thery username and password by opening the web page.The problem is that there is more than 500 users whose browser should be modified. And customer does not accept the ...

Message stream modified....Cross-realm authentication problem?

3718 byte By eero_a at 2008-1-9
My simple program: public static void main(String[] args) throws KrbException, IOException {Credentials c = Credentials.acquireDefaultCreds();System.out.println("default creds: " + c);Credentials s = Credentials.acquireServiceCreds("HTTP/test.xxx.xx", c);System.out.println("service creds: " + ...

Extracting PAC from AD-generated ticket

713 byte By alec_gilchrista at 2008-1-8
I want to pull the PAC out of AD-generated Kerberos credentials.1) Do I need to obtain a KerberosTicket, which I then examine as an ASN.1 encoded byte array, or is there an easier way?2) If I want to get a KerberosTicket on the server side, after a client has juggled contexts with me, how do I ...

Sending and receiving tokens

213 byte By alec_gilchrista at 2008-1-8
Are the tokens generated by context processsing shippable/receivable without any modification?Are the tokens compatible with the tokens processed/created by the MSFT equivalent of GSS-API?Alec

IOExceptionjava.io.IOException: Server returned HTTP response code: 401

2528 byte By rmanea at 2008-1-7
Hi,I am trying to read a file from the remote http location using the following program.import java.io.BufferedReader;import java.io.IOException;import java.io.InputStreamReader;import java.net.Authenticator;import java.net.MalformedURLException;import java.net.PasswordAuthentication;import ...

signed applet - NO Grant access dialog

530 byte By Jmanu at 2008-1-7
I've develped a signed applet which works with the java plugin 1.3.1 and a self signed certificate. while developing i followed the description from irene67 in this forum. every thing works perfektly apart from the grant access dialog. after installing my certificate and starting my applet ...

No kinit/klist in Java 1.6 under Linux

327 byte By Lantoa at 2008-1-5
Hi all,I'm facing a problem : the kerberos related utilities (kinit/klist/kdestroy) have disappeared since Java 1.6, and only under Linux. In a Windows installation, there's no problem.My question is : how can I replace now these utilities ? Is it a bug in the JDK or JRE installation package ...

why is SecurityManager null?

306 byte By 6tr6tr at 2008-1-5
I use -Djava.security.Manager when running the test app and then call:java.lang.SecurityManager sm = System.getSecurityManager();System.out.println(sm == null); It always prints true! Why? How do I make the SecurityManager not null? ...

What purpose has Java GSS? What do I need it for, SSO?

894 byte By Santacruzshoresa at 2008-1-5
Hey,I am working on a single sign-on solution for smart clients (written in Java). Kerberos authentication with JAAS works fine, but what is the Java GSS API for? That - according to some Tutorials like "Single Sign-on Using Kerberos in Java" - is supposed to be executed in the Subject's doAs ...

Single Sign On using Kerberos and Active Directory

5057 byte By michael_623a at 2008-1-4
I am attempting to write a proof of concept of Single Sign On using Kerberos and Active Directory.I have searched through these forums and found several suggestions which I have attempted to use, in fact my code snippet below comes from these forums.I have set the registry setting ...

How to get valid Kerberos ticket without using TicketCache and Password

3246 byte By Prakash_Selvaa at 2008-1-4
Hello, I am implementing Single Sign-on feature using Kerberos in Java.Ours is a web based application. When user opens application using browser, it sends windows username to Web server, the Web server should try to get valid KerberosTicket for this user and if the ticket is valid the browser ...

various reporting tools

171 byte By rajschintapallia at 2008-1-3
Hi all, I want to know various reporting tools which are downladable , fast and can save in pdf,csv,xml,doc,xls formatsCan any one give me the answers

SPNEGO (No valid credentials provided)

9158 byte By technoplaguea at 2008-1-3
Hello!I am trying to integrate kerberos SSO into weblogic platform.Doing exactly as it is described here - http://dev2dev.bea.com.cn/techdoc/20060621823.htmlMy jaas config:com.sun.security.jgss.initiate {com.sun.security.auth.module.Krb5LoginModule requiredprincipal="HTTP/wl.dev.org@DEV.ORG" ...

Kerberos Configuration Issues: Server prompts for password

4415 byte By Tom_Sciora at 2008-1-2
I'm trying to write a Java Servlet Filter to perform kerberos through Spnego. I'm working with a windows 2003 Server (Enterprise Edition) but I keep getting prompted for the password. This obviously won't do for a server program so I'm trying to figure out a way around entering the password ...

Destroy Kerberos ticket

209 byte By Laurent_Grangiera at 2008-1-2
Hello,Is there an way to destroy an existing Kerberos ticket with Java 1.6 ?I need to do multiple access to the same server but with different authentification.Thanks,Laurent

Negotiation data format !

2255 byte By munumberonea at 2008-1-2
Hi experts !I use Basic Authentication with ISS + Tomcat. I want to get user information from request.getHeader("Authentication") in a servlet. I have decoded it by Base64 coding. And I have following content:Negotiate ...

Server not found in Kerberos database (7)

4014 byte By SecurityTyroa at 2008-1-1
Hi,I am trying to run the GSSClient/GSSServer example in the JAAS/JGSS tutorial. In the tutorial it says "So for the purposes of trying out this tutorial, you could use your user name as both the client user name and the service principal name. "As I dont have permissions to make modifications ...