wood burning stoves 2.0*
The moose likes Security and the fly likes javax.naming.AuthenticationException: [LDAP: error code 49..... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Security
Bookmark "javax.naming.AuthenticationException: [LDAP: error code 49....." Watch "javax.naming.AuthenticationException: [LDAP: error code 49....." New topic
Author

javax.naming.AuthenticationException: [LDAP: error code 49.....

John Landon
Ranch Hand

Joined: Sep 25, 2008
Posts: 227
Hi,
I am getting these sorts of exceptions when trying to authenticate to active directory:
javax.naming.AuthenticationException: [LDAP: error code 49 - 80090308: LdapErr: DSID-0C090334, comment: AcceptSecurityContext error, data 773, vece

Now I know the codes are:

525 - user not found
52e - invalid credentials
530 - not permitted to logon at this time
532 - password expired
533 - account disabled
701 - account expired
773 - user must reset password

Now in my code I want to give a user nice message according to what happened. Is there a better way then just parsing the message string?

Thanks,
John.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: javax.naming.AuthenticationException: [LDAP: error code 49.....
 
Similar Threads
Getting javax.naming.AuthenticationException while connecting to LDAP server from java code
LDAP: error code 49 - 80090308: LdapErr: DSID-0C090334
JNDI problem
JNDI Properties for Oracle 10g AS(904)
Check whether PasswordExpired in Acitve Directory via JNDI/LDAP