I get some authentication error when use ldap.
the debug.log :
2005.02.21 19:26:25 Created new LdapManager() instance, fields:
2005.02.21 19:26:25 host: localhost
2005.02.21 19:26:25 port: 389
2005.02.21 19:26:25 usernamefield: uid
2005.02.21 19:26:25 baseDN:
2005.02.21 19:26:25 alternateBaseDN: null
2005.02.21 19:26:25 nameField: cn
2005.02.21 19:26:25 emailField: mail
2005.02.21 19:26:25 adminDN: null
2005.02.21 19:26:25 adminPassword: null
2005.02.21 19:26:25 ldapDebugEnabled: false
2005.02.21 19:26:25 sslEnabled: false
2005.02.21 19:26:25 initialContextFactory: com.sun.jndi.ldap.LdapCtxFactory
2005.02.21 19:26:25 connectionPoolEnabled: true
2005.02.21 19:26:25 autoFollowReferrals: false
2005.02.21 19:26:26 Loading plugin admin
2005.02.21 19:26:38 Connect Socket[addr=/192.168.55.25,port=3442,localport=5222]
2005.02.21 19:26:38 Trying to find a user’'s DN based on their username. uid: z_yong, Base DN: …
2005.02.21 19:26:38 Creating a DirContext in LdapManager.getContext()…
2005.02.21 19:26:38 Created hashtable with context values, attempting to create context…
2005.02.21 19:26:38 … context created successfully, returning.
2005.02.21 19:26:38 Starting LDAP search…
2005.02.21 19:26:38 … search finished
2005.02.21 19:26:38 In LdapManager.checkAuthentication(userDN, password), userDN is: CN=赵勇,O=西光集团…
2005.02.21 19:26:38 Created context values, attempting to create context…
2005.02.21 19:26:38 Caught a naming exception when creating InitialContext
javax.naming.AuthenticationNotSupportedException: LDAP: error code 48 - Bind failed: Invalid credentials for CN= ?? ??/O= ?? ?? ?? ??/
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)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(Unknown Source)
at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(Unknown Source)
at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(Unknown Source)
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.init(Unknown Source)
at javax.naming.InitialContext.(Unknown Source)
at javax.naming.directory.InitialDirContext.(Unknown Source)
at org.jivesoftware.messenger.ldap.LdapManager.checkAuthentication(LdapManager.jav a:256)
at org.jivesoftware.messenger.ldap.LdapAuthProvider.authenticate(LdapAuthProvider. java:91)
at org.jivesoftware.messenger.auth.AuthFactory.authenticate(AuthFactory.java:100)
at org.jivesoftware.messenger.handler.IQAuthHandler.login(IQAuthHandler.java:180)
at org.jivesoftware.messenger.handler.IQAuthHandler.handleIQ(IQAuthHandler.java:12 2)
at org.jivesoftware.messenger.handler.IQHandler.process(IQHandler.java:48)
at org.jivesoftware.messenger.IQRouter.handle(IQRouter.java:192)
at org.jivesoftware.messenger.IQRouter.route(IQRouter.java:74)
at org.jivesoftware.messenger.PacketRouter.route(PacketRouter.java:78)
at org.jivesoftware.messenger.net.SocketReadThread.readStream(SocketReadThread.jav a:207)
at org.jivesoftware.messenger.net.SocketReadThread.run(SocketReadThread.java:109)
2005.02.21 19:26:44 Logging off sicongoa/84ddd7a0 on org.jivesoftware.messenger.net.SocketConnection@6b9c84
How can I make it work? Did Jivemessager support ''gb2312 ‘’ ?