powered by Jive Software

LDAP Question

Been working at getting LDAP working but have run into issues. Everything I try to login to the admin site I get a message stating ‘‘Login Failed…alert admin’’. I check the log file and I get the following

2005.07.11 15:39:50 Created new LdapManager() instance, fields:

2005.07.11 15:39:50 host: LDAPSERVERNAME

2005.07.11 15:39:50 port: 389

2005.07.11 15:39:50 usernamefield: uid

2005.07.11 15:39:50 baseDN: CN=Users,DC=us,DC=companyname,DC=com

2005.07.11 15:39:50 alternateBaseDN: null

2005.07.11 15:39:50 nameField: cn

2005.07.11 15:39:50 emailField: mail

2005.07.11 15:39:50 adminDN: CN=scottsh,CN=Users,DC=us,DC=companyname,DC=com

2005.07.11 15:39:50 adminPassword: password

2005.07.11 15:39:50 searchFilter: (uid=)

2005.07.11 15:39:50 ldapDebugEnabled: false

2005.07.11 15:39:50 sslEnabled: false

2005.07.11 15:39:50 initialContextFactory: com.sun.jndi.ldap.LdapCtxFactory

2005.07.11 15:39:50 connectionPoolEnabled: true

2005.07.11 15:39:50 autoFollowReferrals: false

2005.07.11 15:39:51 Loading plugin admin

2005.07.11 15:41:32 Trying to find a user’'s DN based on their username. uid: scottsh, Base DN: CN=Users,DC=us,DC=companyname,DC=com…

2005.07.11 15:41:32 Creating a DirContext in LdapManager.getContext()…

2005.07.11 15:41:32 Created hashtable with context values, attempting to create context…

2005.07.11 15:41:33 … context created successfully, returning.

2005.07.11 15:41:33 Starting LDAP search…

2005.07.11 15:41:34 … search finished

2005.07.11 15:41:34 User DN based on username ‘‘scottsh’’ not found.

2005.07.11 15:41:34 Exception thrown when searching for userDN based on username ‘‘scottsh’’

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

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

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

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

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

at org.jivesoftware.messenger.admin.login_jsp._jspService(login_jsp.java:136)

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

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

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

at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplica tionHandler.java:822)

at org.jivesoftware.util.LocaleFilter.doFilter(LocaleFilter.java:43)

at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplica tionHandler.java:813)

at org.jivesoftware.util.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingF ilter.java:41)

at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplica tionHandler.java:813)

at org.jivesoftware.admin.AuthCheckFilter.doFilter(AuthCheckFilter.java:78)

at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplica tionHandler.java:813)

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

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

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

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

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

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

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

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

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

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

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

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

2005.07.11 15:47:11 Created new LdapManager() instance, fields:

To me it looks like it is talking to the LDAP server, but I just cant seem to find the account. Any ideas? Thanks.

Shaun

Fixed it on my own, changed the following line from

Hope that helps someone.

Shaun