You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Rohnny Moland <rm...@gmail.com> on 2006/02/25 15:07:00 UTC

NameNotFoundException when connecting to LDAP

Hi,

I am trying to connect J2 - ldap (apacheds), and have followed
<http://portals.apache.org/jetspeed-2/multiproject/jetspeed-security/ldap.html>.

But, when loading the portal page, I get this exception:


2006-02-25 14:34:31,770 [http-8080-Processor25] ERROR
org.apache.jetspeed.security.spi.impl.LdapUserSecurityHandler - An LDAP
error has occurred for user uid:admin
org.apache.jetspeed.security.SecurityException:
javax.naming.NameNotFoundException: [LDAP: error code 32 - failed on
search operation]; remaining name ''
	at
org.apache.jetspeed.security.spi.impl.ldap.AbstractLdapDao.lookupByUid(AbstractLdapDao.java:197)
	at
org.apache.jetspeed.security.spi.impl.LdapUserSecurityHandler.getUserPrincipal(LdapUserSecurityHandler.java:87)
	at
org.apache.jetspeed.security.impl.AuthenticationProviderProxyImpl.getUserPrincipal(AuthenticationProviderProxyImpl.java:133)
	at
org.apache.jetspeed.security.impl.UserManagerImpl.getUser(UserManagerImpl.java:337)
	at
org.apache.jetspeed.security.impl.LoginValidationValveImpl.invoke(LoginValidationValveImpl.java:95)

[..]

Caused by: javax.naming.NameNotFoundException: [LDAP: error code 32 -
failed on search operation]; remaining name ''
	at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3010)
	at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2931)
	at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2737)
	at com.sun.jndi.ldap.LdapCtx.searchAux(LdapCtx.java:1808)
	at com.sun.jndi.ldap.LdapCtx.c_search(LdapCtx.java:1731)
	at
com.sun.jndi.toolkit.ctx.ComponentDirContext.p_search(ComponentDirContext.java:368)
	at
com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:338)
	at
com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:321)
	at
javax.naming.directory.InitialDirContext.search(InitialDirContext.java:248)
	at
org.apache.jetspeed.security.spi.impl.ldap.AbstractLdapDao.searchByWildcardedUid(AbstractLdapDao.java:304)
	at
org.apache.jetspeed.security.spi.impl.ldap.AbstractLdapDao.lookupByUid(AbstractLdapDao.java:191)
	... 53 more


Anyone run into this issue before, and know what the reason could be?
Using apacheds 1.0-rc-1 and j2 cvs from some weeks ago.

Thanks,
Rohnny

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


Re: NameNotFoundException when connecting to LDAP

Posted by Rohnny Moland <rm...@gmail.com>.
On 02/25/2006 10:54 PM, Roger Ruttimann wrote:
> Make sure the user you use exists in the ApacheDS directory and that you 
> use the correct (LDAP) ObjectGroups and the correct OrganizationalUnit 
> for User.
> 
> Did you try to connect using Xplorer and verify that your credentials / 
> DN connection are correct?

Yes, I can connect with JXplorer, but I missed the jetspeed schemas in
my apacheds configuration file, so I am sure that will fix the problem.

Thanks,
Rohnny

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


Re: NameNotFoundException when connecting to LDAP

Posted by Roger Ruttimann <ro...@earthlink.net>.
Make sure the user you use exists in the ApacheDS directory and that you 
use the correct (LDAP) ObjectGroups and the correct OrganizationalUnit 
for User.

Did you try to connect using Xplorer and verify that your credentials / 
DN connection are correct?

Roger

Rohnny Moland wrote:

>Hi,
>
>I am trying to connect J2 - ldap (apacheds), and have followed
><http://portals.apache.org/jetspeed-2/multiproject/jetspeed-security/ldap.html>.
>
>But, when loading the portal page, I get this exception:
>
>
>2006-02-25 14:34:31,770 [http-8080-Processor25] ERROR
>org.apache.jetspeed.security.spi.impl.LdapUserSecurityHandler - An LDAP
>error has occurred for user uid:admin
>org.apache.jetspeed.security.SecurityException:
>javax.naming.NameNotFoundException: [LDAP: error code 32 - failed on
>search operation]; remaining name ''
>	at
>org.apache.jetspeed.security.spi.impl.ldap.AbstractLdapDao.lookupByUid(AbstractLdapDao.java:197)
>	at
>org.apache.jetspeed.security.spi.impl.LdapUserSecurityHandler.getUserPrincipal(LdapUserSecurityHandler.java:87)
>	at
>org.apache.jetspeed.security.impl.AuthenticationProviderProxyImpl.getUserPrincipal(AuthenticationProviderProxyImpl.java:133)
>	at
>org.apache.jetspeed.security.impl.UserManagerImpl.getUser(UserManagerImpl.java:337)
>	at
>org.apache.jetspeed.security.impl.LoginValidationValveImpl.invoke(LoginValidationValveImpl.java:95)
>
>[..]
>
>Caused by: javax.naming.NameNotFoundException: [LDAP: error code 32 -
>failed on search operation]; remaining name ''
>	at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3010)
>	at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2931)
>	at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2737)
>	at com.sun.jndi.ldap.LdapCtx.searchAux(LdapCtx.java:1808)
>	at com.sun.jndi.ldap.LdapCtx.c_search(LdapCtx.java:1731)
>	at
>com.sun.jndi.toolkit.ctx.ComponentDirContext.p_search(ComponentDirContext.java:368)
>	at
>com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:338)
>	at
>com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:321)
>	at
>javax.naming.directory.InitialDirContext.search(InitialDirContext.java:248)
>	at
>org.apache.jetspeed.security.spi.impl.ldap.AbstractLdapDao.searchByWildcardedUid(AbstractLdapDao.java:304)
>	at
>org.apache.jetspeed.security.spi.impl.ldap.AbstractLdapDao.lookupByUid(AbstractLdapDao.java:191)
>	... 53 more
>
>
>Anyone run into this issue before, and know what the reason could be?
>Using apacheds 1.0-rc-1 and j2 cvs from some weeks ago.
>
>Thanks,
>Rohnny
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org