LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 09-01-2009, 02:03 AM   #1
EricTRA
Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291
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
 
Old 09-15-2009, 01:24 AM   #2
EricTRA
Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Original Poster
Rep: Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Authenticating FTP-Users via LDAP Manaburner Linux - Server 0 10-17-2007 04:43 PM
authenticating through one ldap server that uses other ldap servers & active director dreamm Linux - Server 1 02-21-2007 09:22 AM
authenticating an ldap server onto itself guy_ripper Linux - Networking 1 12-01-2006 03:10 AM
mail server authenticating to ldap zachts Linux - Networking 1 09-27-2005 01:12 PM
LDAP, VSFTPD Not authenticating. dlublink Linux - Networking 3 01-19-2005 07:49 PM


All times are GMT -5. The time now is 06:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration