powered by Jive Software

LDAP (AD) Authentication - Security Group

Hi All

I need to authenticate users that belongs to a specified security group.

wildifre.xml:

##############

When i try to log with msgadmin on adminConsole an exception is thrown:

2006.01.25 16:39:42 Trying to find a user’'s DN based on their username. sAMAccountName: msgadmin, Base DN: OU=Team,DC=domain,DC=net…

2006.01.25 16:39:42 Creating a DirContext in LdapManager.getContext()…

2006.01.25 16:39:42 Created hashtable with context values, attempting to create context…

2006.01.25 16:39:42 … context created successfully, returning.

2006.01.25 16:39:42 Starting LDAP search…

2006.01.25 16:39:43 … search finished

2006.01.25 16:39:43 Search for userDN based on username ‘‘msgadmin’’ found multiple responses, throwing exception.

2006.01.25 16:39:43 Exception thrown when searching for userDN based on username ‘‘msgadmin’’

org.jivesoftware.wildfire.user.UserNotFoundException: LDAP username lookup for msgadmin matched multiple entries.

at org.jivesoftware.wildfire.ldap.LdapManager.findUserDN(LdapManager.java:489)

at org.jivesoftware.wildfire.ldap.LdapManager.findUserDN(LdapManager.java:411)

at org.jivesoftware.wildfire.ldap.LdapAuthProvider.authenticate(LdapAuthProvider.j ava:88)

at org.jivesoftware.wildfire.auth.AuthFactory.authenticate(AuthFactory.java:114)

at org.jivesoftware.wildfire.admin.login_jsp._jspService(login_jsp.java:134)

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 com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:39)

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

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:98)

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.HttpConnatection.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)

Someone can help?

What is wrong with my config file?

Without the searchFilter tag everything works fine…

Thanks in advance.

Daniel