powered by Jive Software

Active Directory testing

I am testing active directory against windows 2003 server.

After firing up the admin application and attempting to log in as admin I get a nullpointer exception. Here is the error.log

2004.11.11 14:23:04 [org.jivesoftware.messenger.user.UserProviderFactory.loadProviders(UserProvider Factory.java:101)

] Exception loading class: com.jivesoftware.messenger.ldap.LdapUserInfoProvider

java.lang.ClassNotFoundException: com.jivesoftware.messenger.ldap.LdapUserInfoProvider

at java.net.URLClassLoader$1.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at org.jivesoftware.util.ClassUtils.loadClass(ClassUtils.java:67)

at org.jivesoftware.util.ClassUtils.forName(ClassUtils.java:39)

at org.jivesoftware.messenger.user.UserProviderFactory.loadProviders(UserProviderF actory.java:98)

at org.jivesoftware.messenger.user.UserProviderFactory.getUserInfoProvider(UserPro viderFactory.java:74)

at org.jivesoftware.messenger.user.spi.UserManagerImpl.getUser(UserManagerImpl.jav a:136)

at org.jivesoftware.util.WebManager.getUser(WebManager.java:131)

at org.jivesoftware.messenger.admin.index_jsp._jspService(index_jsp.java:178)

at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:405)

at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler. java:472)

at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:525)

at org.mortbay.http.HttpContext.handle(HttpContext.java:1457)

at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.ja va:514)

at org.mortbay.http.HttpContext.handle(HttpContext.java:1409)

at org.mortbay.http.HttpServer.service(HttpServer.java:889)

at org.mortbay.http.HttpConnection.service(HttpConnection.java:829)

at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:998)

at org.mortbay.http.HttpConnection.handle(HttpConnection.java:846)

at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)

at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:345)

at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:530)

2004.11.11 14:23:04 [org.jivesoftware.messenger.user.UserProviderFactory.loadProviders(UserProvider Factory.java:107)

] Exception loading class: [Ljava.lang.String;@33f0de

java.lang.ClassCastException: org.jivesoftware.messenger.ldap.LdapUserIDProvider

at org.jivesoftware.messenger.user.UserProviderFactory.setProviders(UserProviderFa ctory.java:63)

at org.jivesoftware.messenger.user.UserProviderFactory.loadProviders(UserProviderF actory.java:104)

at org.jivesoftware.messenger.user.UserProviderFactory.getUserInfoProvider(UserPro viderFactory.java:74)

at org.jivesoftware.messenger.user.spi.UserManagerImpl.getUser(UserManagerImpl.jav a:136)

at org.jivesoftware.util.WebManager.getUser(WebManager.java:131)

at org.jivesoftware.messenger.admin.index_jsp._jspService(index_jsp.java:178)

at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:405)

at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler. java:472)

at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:525)

at org.mortbay.http.HttpContext.handle(HttpContext.java:1457)

at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.ja va:514)

at org.mortbay.http.HttpContext.handle(HttpContext.java:1409)

at org.mortbay.http.HttpServer.service(HttpServer.java:889)

at org.mortbay.http.HttpConnection.service(HttpConnection.java:829)

at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:998)

at org.mortbay.http.HttpConnection.handle(HttpConnection.java:846)

at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)

at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:345)

at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:530)

mtdc3

389

uid

cn

mail

DC=mydomain, DC=com

CN=Administrator,OU=System users,DC=mydomain,DC=com

mypwd

1

org.jivesoftware.messenger.ldap.LdapUserIDProvider

org.jivesoftware.messenger.ldap.LdapUserPropertiesProvider</classNam e>

com.jivesoftware.messenger.ldap.LdapUserInfoProvider

com.jivesoftware.messenger.ldap.LdapUserAccountProvider

org.jivesoftware.messenger.ldap.LdapAuthProvider

Timmy,

Replace com.jivesoftware.* with org.jivesoftware.* in your jive-messenger.xml file.

Regards,

– Gato

Ok tried that and still got an error.

The odd thing is that if I type in a user name of “Admin” it fails logon but does not throw an exception. If I use the user name “admin” (small A) it does throw an exception.

Here is the error.log

2004.11.11 15:05:34 [org.jivesoftware.messenger.user.UserProviderFactory.loadProviders(UserProvider Factory.java:107)

] Exception loading class: [Ljava.lang.String;@1947496

java.lang.ClassCastException: org.jivesoftware.messenger.ldap.LdapUserIDProvider

at org.jivesoftware.messenger.user.UserProviderFactory.setProviders(UserProviderFa ctory.java:63)

at org.jivesoftware.messenger.user.UserProviderFactory.loadProviders(UserProviderF actory.java:104)

at org.jivesoftware.messenger.user.UserProviderFactory.getUserInfoProvider(UserPro viderFactory.java:74)

at org.jivesoftware.messenger.user.spi.UserManagerImpl.getUser(UserManagerImpl.jav a:136)

at org.jivesoftware.util.WebManager.getUser(WebManager.java:131)

at org.jivesoftware.messenger.admin.index_jsp._jspService(index_jsp.java:178)

at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:405)

at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler. java:472)

at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:525)

at org.mortbay.http.HttpContext.handle(HttpContext.java:1457)

at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.ja va:514)

at org.mortbay.http.HttpContext.handle(HttpContext.java:1409)

at org.mortbay.http.HttpServer.service(HttpServer.java:889)

at org.mortbay.http.HttpConnection.service(HttpConnection.java:829)

at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:998)

at org.mortbay.http.HttpConnection.handle(HttpConnection.java:846)

at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)

at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:345)

at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:530)

I’‘m pretty sure the LDAP code is broken at the moment (a side effect of the large refactoring in the past couple of days). I’'ll try to get it all fixed and tested today. Sorry about that!

-Matt

No probs. glad to test to for you. Let me know when you need me to test it again.