hi,
here is the ldap debug :
+*2006.12.10 20:24:38 Connect Socket[addr=/192.168.0.124,port=1650,localport=5222]
2006.12.10 20:25:23 Trying to find a user’'s DN based on their username. uid: pattchen, Base DN: dc=example,dc=org…
2006.12.10 20:25:23 Creating a DirContext in LdapManager.getContext()…
2006.12.10 20:25:23 Created hashtable with context values, attempting to create context…
2006.12.10 20:25:23 … context created successfully, returning.
2006.12.10 20:25:23 Starting LDAP search…
2006.12.10 20:25:23 … search finished
2006.12.10 20:25:23 In LdapManager.checkAuthentication(userDN, password), userDN is: uid=“pattchen”,ou=“GenieInformatique”,ou=“Eleves”…
2006.12.10 20:25:23 Created context values, attempting to create context…
2006.12.10 20:25:23 Caught a naming exception when creating InitialContext
javax.naming.AuthenticationException: LDAP: error code 49 - Invalid Credentials
at com.sun.jndi.ldap.LdapCtx.mapErrorCode(Unknown Source)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(Unknown Source)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(Unknown Source)
at com.sun.jndi.ldap.LdapCtx.connect(Unknown Source)
at com.sun.jndi.ldap.LdapCtx.
2006.12.10 20:25:54 Trying to find a user’'s DN based on their username. uid: adminexample, Base DN: dc=example,dc=org…
2006.12.10 20:25:54 Creating a DirContext in LdapManager.getContext()…
2006.12.10 20:25:54 Created hashtable with context values, attempting to create context…
2006.12.10 20:25:54 … context created successfully, returning.
2006.12.10 20:25:54 Starting LDAP search…
2006.12.10 20:25:54 … search finished
2006.12.10 20:25:54 In LdapManager.checkAuthentication(userDN, password), userDN is: uid=“adminexample”,ou=“Special Users”…
2006.12.10 20:25:54 Created context values, attempting to create context…
2006.12.10 20:25:54 … context created successfully, returning.*+
As you have certainly noticed,the user pattchen cannot connect while the admin doesn’'t have problems.
Pat Tchen.