powered by Jive Software

Having issues authenticating with Active Directory (cyrillic problem?)

I’'m trying to create Jive Messenger 2.1.2 authenticate users to Active Directory and have some problems with authentication

Part of my jive-messenger.xml file (some paths below are represented in Russian (codepage win-1251)):

domainsrv.arsenal.plm

389

sAMAccountName

displayName

mail

DC=arsenal,DC=plm

CN=Jabber,CN=Users,DC=arsenal,DC=plm

JabberPassword

For user login “Jabber” – no problem:

….

2005.03.11 12:35:54 Logging off it-011/54bbf831 on org.jivesoftware.messenger.net.SocketConnection@1a1399

2005.03.11 12:38:34 Connect Socket[addr=/127.0.0.1,port=2755,localport=5222]

2005.03.11 12:38:34 Trying to find a user’'s DN based on their username. sAMAccountName: jabber, Base DN: DC=arsenal,DC=plm…

2005.03.11 12:38:34 Creating a DirContext in LdapManager.getContext()…

2005.03.11 12:38:34 Created hashtable with context values, attempting to create context…

2005.03.11 12:38:34 … context created successfully, returning.

2005.03.11 12:38:34 Starting LDAP search…

2005.03.11 12:38:34 … search finished

2005.03.11 12:38:34 In LdapManager.checkAuthentication(userDN, password), userDN is: CN=Jabber,CN=Users…

2005.03.11 12:38:34 Created context values, attempting to create context…

2005.03.11 12:38:34 … context created successfully, returning.

But I have a problem for user “srm47027” (FullLdapPATH: “CN=Øàéìàðäàíîâ Ðåíàò Ìàðêîâè÷,OU=Users,OU=147/02 Ãðóïïà ðàçðàáîòêè è âíåäðåíèÿ PLM-ðåøåíèé,OU=147 Îòäåë èíôîðìàöèîííûõ òåõíîëîãèé,OU=115 Óïðàâëåíèå èíôîðìàöèîííûõ ñèñòåì,OU=Domain Units, DC=arsenal,DC=plm ”) (debug.log):

2005.03.11 12:39:21 Connect Socket[addr=/192.168.0.29,port=2757,localport=5222]

2005.03.11 12:39:21 Trying to find a user’'s DN based on their username. sAMAccountName: srm47027, Base DN: DC=arsenal,DC=plm…

2005.03.11 12:39:21 Creating a DirContext in LdapManager.getContext()…

2005.03.11 12:39:21 Created hashtable with context values, attempting to create context…

2005.03.11 12:39:21 … context created successfully, returning.

2005.03.11 12:39:21 Starting LDAP search…

2005.03.11 12:39:21 … search finished

2005.03.11 12:39:21 In LdapManager.checkAuthentication(userDN, password), userDN is: “CN=Øàéìàðäàíîâ Ðåíàò Ìàðêîâè÷,OU=Users,OU=147/02 Ãðóïïà ðàçðàáîòêè è âíåäðåíèÿ PLM-ðåøåíèé,OU=147 Îòäåë èíôîðìàöèîííûõ òåõíîëîãèé,OU=115 Óïðàâëåíèå èíôîðìàöèîííûõ ñèñòåì,OU=Domain Units”…

2005.03.11 12:39:21 Created context values, attempting to create context…

2005.03.11 12:39:21 Caught a naming exception when creating InitialContext

javax.naming.AuthenticationException: LDAP: error code 49 - 80090308: LdapErr: DSID-0C09030B, comment: AcceptSecurityContext error, data 525, v893

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.(Unknown Source)

at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(Unknown Source)

etc

….

But if I write to :

OU=147/02 Ãðóïïà ðàçðàáîòêè è âíåäðåíèÿ PLM-ðåøåíèé,OU=147 Îòäåë èíôîðìàöèîííûõ òåõíîëîãèé,OU=115 Óïðàâëåíèå èíôîðìàöèîííûõ ñèñòåì,OU=Domain Units,DC=arsenal,DC=plm

then “srm47027” is login OK:

2005.03.11 12:47:58 Connect Socket[addr=/192.168.0.29,port=2783,localport=5222]

2005.03.11 12:47:58 Trying to find a user’'s DN based on their username. sAMAccountName: srm47027, Base DN: OU=147/02 Ãðóïïà ðàçðàáîòêè è âíåäðåíèÿ PLM-ðåøåíèé,OU=147 Îòäåë èíôîðìàöèîííûõ òåõíîëîãèé,OU=115 Óïðàâëåíèå èíôîðìàöèîííûõ ñèñòåì,OU=Domain Units,DC=arsenal,DC=plm…

2005.03.11 12:47:58 Creating a DirContext in LdapManager.getContext()…

2005.03.11 12:47:58 Created hashtable with context values, attempting to create context…

2005.03.11 12:47:58 … context created successfully, returning.

2005.03.11 12:47:58 Starting LDAP search…

2005.03.11 12:47:58 … search finished

2005.03.11 12:47:58 In LdapManager.checkAuthentication(userDN, password), userDN is: CN=Øàéìàðäàíîâ Ðåíàò Ìàðêîâè÷,OU=Users…

2005.03.11 12:47:58 Created context values, attempting to create context…

2005.03.11 12:47:58 … context created successfully, returning.

Tell me please what is the reason of the bug – I suppose some problems with code page or the length of the path

PS. Sorry for my English

Thanks in advance

Best regards,

Renat

It looks like this is the same question as:

http://www.jivesoftware.org/forums/thread.jspa?threadID=14246

Therefore I’'m locking this thread.

Regards,

Matt