powered by Jive Software

Escaping does it work or not?

I am using the jive 2.1.4 with Ldap for authentication. My company has usernames lastnamefirstname. We also have username with one word (no problems with them).

To login to admin consol I use

smith john as username and it works fine.

To connect with jabber client

smith john or smith\20john (jabber protocol specification for space) doesn’'t work

This is what a get in the log files for Smith John

Error Log

at org.xmpp.packet.JID.(JID.java:266)

at org.xmpp.packet.JID.init(JID.java:391)

java.lang.IllegalArgumentException: Illegal JID: smith john@127.0.0.1/neos

] Error handling authentication IQ packet

Debug log

2005.06.09 10:56:30 … context created successfully, returning.

2005.06.09 10:56:30 Created context values, attempting to create context…

2005.06.09 10:56:30 In LdapManager.checkAuthentication(userDN, password), userDN is: CN=Smith John,OU=Gibson,OU=USERS…

2005.06.09 10:56:30 … search finished

2005.06.09 10:56:30 Starting LDAP search…

2005.06.09 10:56:30 … context created successfully, returning.

2005.06.09 10:56:30 Created hashtable with context values, attempting to create context…

2005.06.09 10:56:30 Creating a DirContext in LdapManager.getContext()…

2005.06.09 10:56:30 Trying to find a user’'s DN based on their username. sAMAccountName: Smith John, Base DN: DC=company,DC=company…

2005.06.09 10:56:30 Connect Socket[addr=/10.1.1.28,port=2071,localport=5222]

2005.06.09 10:56:28 Logging off 127.0.0.1/ad3e922c on org.jivesoftware.messenger.net.SocketConnection@18e80a6

This is what I get for Smith\20John

Error.log

no change

Debug.log

2005.06.09 11:00:08 Logging off 127.0.0.1/8a5f0976 on org.jivesoftware.messenger.net.SocketConnection@d5cabc socket: Socket[addr=/10.1.1.28,port=2096,localport=5222] session: org.jivesoftware.messenger.ClientSession@1f10a67 status: 1 address: 127.0.0.1/8a5f0976 id: 8a5f0976 presence:

at org.jivesoftware.messenger.net.SocketReadThread.run(SocketReadThread.java:105)

at org.jivesoftware.messenger.net.SocketReadThread.readStream(SocketReadThread.jav a:285)

at org.jivesoftware.messenger.PacketRouter.route(PacketRouter.java:65)

at org.jivesoftware.messenger.IQRouter.route(IQRouter.java:73)

at org.jivesoftware.messenger.IQRouter.handle(IQRouter.java:202)

at org.jivesoftware.messenger.handler.IQHandler.process(IQHandler.java:48)

at org.jivesoftware.messenger.handler.IQAuthHandler.handleIQ(IQAuthHandler.java:14 1)

at org.jivesoftware.messenger.handler.IQAuthHandler.login(IQAuthHandler.java:221)

at org.jivesoftware.messenger.auth.AuthFactory.authenticate(AuthFactory.java:97)

at org.jivesoftware.messenger.ldap.LdapAuthProvider.authenticate(LdapAuthProvider. java:88)

at org.jivesoftware.messenger.ldap.LdapManager.findUserDN(LdapManager.java:358)

at org.jivesoftware.messenger.ldap.LdapManager.findUserDN(LdapManager.java:423)

org.jivesoftware.messenger.user.UserNotFoundException: Username Smith\20John not found

2005.06.09 11:00:08 Exception thrown when searching for userDN based on username ‘‘Smith\20John’’

2005.06.09 11:00:08 User DN based on username ‘‘Smith\20John’’ not found.

2005.06.09 11:00:08 … search finished

2005.06.09 11:00:08 Starting LDAP search…

2005.06.09 11:00:08 … context created successfully, returning.

2005.06.09 11:00:08 Created hashtable with context values, attempting to create context…

2005.06.09 11:00:08 Creating a DirContext in LdapManager.getContext()…

2005.06.09 11:00:08 Trying to find a user’'s DN based on their username. sAMAccountName: Smith\20John, Base DN: DC=company,DC=company…

2005.06.09 11:00:08 Connect Socket[addr=/10.1.1.28,port=2096,localport=5222]

2005.06.09 10:59:19 Logging off 127.0.0.1/ff0085a1 on org.jivesoftware.messenger.net.SocketConnection@1d4d493 socket: Socket[addr=/10.1.1.28,port=2071,localport=5222] session: org.jivesoftware.messenger.ClientSession@1d03a4e status: 1 address: 127.0.0.1/ff0085a1 id: ff0085a1 presence:

I tried the number of clients and none of them work

Thank you very much.