go to  ForumEasy.com   
LdapPro  
 
 
   Home  |  MyForum  |  FAQ  |  Archive    You are not logged in. [Login] or [Register]  
Forum Home » SIMPLE & SASL Binding » How to get sub-error code when authenication gets failed with DIGESt-MD5
Email To Friend  |   Set Alert To This Topic Rewarding Points Availabe: 0 (What's this) New Topic  |   Post Reply
Author Topic: How to get sub-error code when authenication gets failed with DIGESt-MD5
nirmaldasb
member
offline   
 
posts: 5
joined: 07/14/2009
from: Tamilnadu
India
  posted on: 07/14/2009 05:37:12 AM    Edit  |   Quote  |   Report 
How to get sub-error code when authenication gets failed with DIGESt-MD5
Hi all,

When an authenitication gets failed with DIGEST-MD-5 mechanisum for any reason like user not eixst/wrong password/account disabled iam not able to get exact sub-error code. always i am getting same like given below.

[LDAP: error code 49 - 8009030C: LdapErr: DSID-0C09043E, comment: AcceptSecurityContext error, data 0, vece


Can any one help, how to get sub-error code here.


Hashtable env = new Hashtable();
//env.put(Context.SECURITY_PROTOCOL, "GSSAPI");
env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory");
env.put(Context.SECURITY_AUTHENTICATION, "DIGEST-MD5");
env.put(Context.PROVIDER_URL, "ldap://xxxx.domain.com:389/"); // SET YOUR SERVER AND STARTING CONTEXT HERE
env.put(Context.SECURITY_PRINCIPAL, "testuser1"); // SET USER THAT CAN SEARCH AND MODIFY FULL NAME HERE
env.put(Context.SECURITY_CREDENTIALS, "xxxxxx"); // SET PASSWORD HERE
env.put("com.sun.jndi.ldap.trace.ber", System.err); //debug trace
// env.put("java.naming.ldap.version", "3");
// env.put(LdapContext.CONTROL_FACTORIES, "com.sun.jndi.ldap.ControlFactory");
DirContext ctx = new InitialLdapContext(env,null);
 Profile | Reply Points Earned: 0

 
Powered by ForumEasy © 2003-2005, All Rights Reserved. | Privacy Policy | Terms of Use
 
Get your own forum today. It's easy and free.