powered by Jive Software

UserNotFoundException

This is my ldap settings in config xml file[/b]

When i try to connect through IM, the log file shows an error. Lines recorded in log file are as follows.[/b]

2005.10.11 15:20:30 Connect Socket[addr=/192.168.0.13,port=2512,localport=5222]

2005.10.11 15:20:30 Trying to find a user’'s DN based on their username. uid: sarfaraz, Base DN: CN=Users;DC=cynapse;DC=local…

2005.10.11 15:20:30 Creating a DirContext in LdapManager.getContext()…

2005.10.11 15:20:30 Created hashtable with context values, attempting to create context…

2005.10.11 15:20:30 … context created successfully, returning.

2005.10.11 15:20:30 Starting LDAP search…

2005.10.11 15:20:30 … search finished

2005.10.11 15:20:30 User DN based on username ‘‘sarfaraz’’ not found.

2005.10.11 15:20:30 Exception thrown when searching for userDN based on username ‘‘sarfaraz’’

org.jivesoftware.messenger.user.UserNotFoundException: Username sarfaraz not found

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

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

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

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

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

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

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

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

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

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

at org.jivesoftware.messenger.net.SocketReader.processIQ(SocketReader.java:258)

at org.jivesoftware.messenger.net.ClientSocketReader.processIQ(ClientSocketReader. java:43)

at org.jivesoftware.messenger.net.SocketReader.readStream(SocketReader.java:230)

at org.jivesoftware.messenger.net.SocketReader.run(SocketReader.java:111)

at java.lang.Thread.run(Unknown Source)

2005.10.11 15:20:30 Logging off cynserver/9161d872 on org.jivesoftware.messenger.net.SocketConnection@97617 socket: Socket[addr=/192.168.0.13,port=2512,localport=5222] session: org.jivesoftware.messenger.ClientSession@127f79d status: 1 address: cynserver/9161d872 id: 9161d872 presence:

Can you try using the same settings using an LDAP browser and make sure you see the user? That will help ensure the settings are correct.

Regards,

Matt

Thanx Matt

We dont have email for our users in LDAP. And I was using it in my config. I just changed it to blank. Now it is working fine.

Thanx for your help.