LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   JamWiki not authenticating using LDAP (http://www.linuxquestions.org/questions/linux-software-2/jamwiki-not-authenticating-using-ldap-751684/)

EricTRA 09-01-2009 01:03 AM

JamWiki not authenticating using LDAP
 
Hi all,

I'm struggling with a problem with JamWiki and after searching the net for a lot of time including the maker of the program, I'm still at a dead end. We've got our domain setup to accept LDAP authentication and it's working for almost any application accept this one. We've got our own programmers in house and even they cannot find what's wrong. So I'm appealing to you guys to find out if someone has encountered the same or similar problem.

My authentication string is:
Code:

<!--
LDAP.  See the Spring Security documentation for configuration information.  When using LDAP comment out the authentication provider configuration above.
-->       
<ldap-server id="ldapServer" url="ldap://172.25.2.18" manager-dn="cn=trdcomun,cn=Users,dc=tradisa,dc=es" manager-password="trdcomun"/>
<ldap-authentication-provider server-ref="ldapServer"  user-dn-pattern="sAMAccountName=%s" />
<authentication-provider>
<ldap-user-service server-ref="ldapServer" user-search-filter="sAMAccountName=%s" user-search-base="ou=Users" />
</authentication-provider>

and the error I'm getting:
Code:

type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.springframework.ldap.UncategorizedLdapException: Uncategorized exception occured during LDAP processing; nested exception is javax.naming.NamingException: [LDAP: error code 1 - 000020D6: SvcErr: DSID-031006CC, problem 5012 (DIR_ERROR), data 0
�]; remaining name 'ou=Users'
org.springframework.ldap.support.LdapUtils.convertLdapException(LdapUtils.java:193)
org.springframework.ldap.core.LdapTemplate.executeWithContext(LdapTemplate.java:786)
org.springframework.ldap.core.LdapTemplate.executeReadOnly(LdapTemplate.java:771)
org.springframework.security.ldap.SpringSecurityLdapTemplate.searchForSingleEntry(SpringSecurityLdapTemplate.java:193)
org.springframework.security.ldap.search.FilterBasedLdapUserSearch.searchForUser(FilterBasedLdapUserSearch.java:118)
org.springframework.security.userdetails.ldap.LdapUserDetailsService.loadUserByUsername(LdapUserDetailsService.java:33)
org.springframework.security.providers.dao.DaoAuthenticationProvider.retrieveUser(DaoAuthenticationProvider.java:83)
org.springframework.security.providers.dao.AbstractUserDetailsAuthenticationProvider.authenticate(AbstractUserDetailsAuthenticationProvider.java:121)
org.springframework.security.providers.ProviderManager.doAuthentication(ProviderManager.java:188)
org.springframework.security.AbstractAuthenticationManager.authenticate(AbstractAuthenticationManager.java:46)
org.springframework.security.ui.webapp.AuthenticationProcessingFilter.attemptAuthentication(AuthenticationProcessingFilter.java:82)
org.springframework.security.ui.AbstractProcessingFilter.doFilterHttp(AbstractProcessingFilter.java:258)
org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
org.springframework.security.ui.logout.LogoutFilter.doFilterHttp(LogoutFilter.java:89)
org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
org.springframework.security.context.HttpSessionContextIntegrationFilter.doFilterHttp(HttpSessionContextIntegrationFilter.java:235)
org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
org.springframework.security.util.FilterChainProxy.doFilter(FilterChainProxy.java:175)
org.springframework.security.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:99)
org.jamwiki.servlets.JAMWikiFilter.doFilter(JAMWikiFilter.java:59)

root cause

javax.naming.NamingException: [LDAP: error code 1 - 000020D6: SvcErr: DSID-031006CC, problem 5012 (DIR_ERROR), data 0
�]; remaining name 'ou=Users'
        com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3025)
        com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2931)
        com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2737)
        com.sun.jndi.ldap.LdapCtx.searchAux(LdapCtx.java:1808)
        com.sun.jndi.ldap.LdapCtx.c_search(LdapCtx.java:1731)
        com.sun.jndi.ldap.LdapCtx.c_search(LdapCtx.java:1748)
com.sun.jndi.toolkit.ctx.ComponentDirContext.p_search(ComponentDirContext.java:394)
com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:376)
com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:358)
javax.naming.directory.InitialDirContext.search(InitialDirContext.java:267)
org.springframework.security.ldap.SpringSecurityLdapTemplate$3.executeWithContext(SpringSecurityLdapTemplate.java:196)
org.springframework.ldap.core.LdapTemplate.executeWithContext(LdapTemplate.java:784)
org.springframework.ldap.core.LdapTemplate.executeReadOnly(LdapTemplate.java:771)
org.springframework.security.ldap.SpringSecurityLdapTemplate.searchForSingleEntry(SpringSecurityLdapTemplate.java:193)
org.springframework.security.ldap.search.FilterBasedLdapUserSearch.searchForUser(FilterBasedLdapUserSearch.java:118)
org.springframework.security.userdetails.ldap.LdapUserDetailsService.loadUserByUsername(LdapUserDetailsService.java:33)
org.springframework.security.providers.dao.DaoAuthenticationProvider.retrieveUser(DaoAuthenticationProvider.java:83)
org.springframework.security.providers.dao.AbstractUserDetailsAuthenticationProvider.authenticate(AbstractUserDetailsAuthenticationProvider.java:121)
org.springframework.security.providers.ProviderManager.doAuthentication(ProviderManager.java:188)
org.springframework.security.AbstractAuthenticationManager.authenticate(AbstractAuthenticationManager.java:46)
org.springframework.security.ui.webapp.AuthenticationProcessingFilter.attemptAuthentication(AuthenticationProcessingFilter.java:82)
org.springframework.security.ui.AbstractProcessingFilter.doFilterHttp(AbstractProcessingFilter.java:258)
org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
org.springframework.security.ui.logout.LogoutFilter.doFilterHttp(LogoutFilter.java:89)
org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
org.springframework.security.context.HttpSessionContextIntegrationFilter.doFilterHttp(HttpSessionContextIntegrationFilter.java:235)
org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
org.springframework.security.util.FilterChainProxy.doFilter(FilterChainProxy.java:175)
org.springframework.security.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:99)
org.jamwiki.servlets.JAMWikiFilter.doFilter(JAMWikiFilter.java:59)

I have looked over the errors and they seem to relate to a user unknown. I assure you the user is known in the system and has rights to access LDAP. The same user is used in various other environments. Problem is that even copying the authentication strings from working applications doesn't work. So I assume it's something typical for the springframework.

As you'll notice this app is using springframework which is like latin to me, so any help in resolving this issue is greatly appreciated. If more info is needed I'll be happy to provide it.

Thanks in advance for any ideas.

Kind regards,

Eric

EricTRA 09-15-2009 12:24 AM

Hi everyone,

Nobody has any idea about this one? Bumping it after two weeks and no replies yet. Any help is greatly appreciated.

Kind regards,

Eric


All times are GMT -5. The time now is 03:36 AM.