archiva-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maria Odea Ching" <och...@apache.org>
Subject Re: Archiva LDAP Problem
Date Thu, 14 Aug 2008 01:30:39 GMT
Hi Lorenzo,

I've posted this to the users list as well :) Please subscribe to the list
by sending a blank email to: users-subscribe@archiva.apache.org

Also, I've already replied to the other question you've posted on the list
but I don't think you got it since you're not yet subscribed :) You can just
view it from the archives:
http://www.nabble.com/Disable-User-Registration-td18957460.html


Thanks,
Deng

On Wed, Aug 13, 2008 at 2:24 PM, Lorenzo Dee <Lorenzo.Dee@headstrong.com>wrote:

>  Hi Deng,
>
>
>
> I'm having problems using LDAP (Active Directory) with Archiva (version
> 1.1.1).  I've tested using an LDAP browser, the bind dn and password works.
>
>
>
> Does it matter if my bind dn contains white spaces? If so, can I escape it?
> I tried enclosing them in double quotes and Archiva indicates that it's an
> invalid name.
>
>
>
> My security.properties file has the following settings:
>
>
>
> # LDAP Settings
>
> user.manager.impl=ldap
>
> ldap.user.store.enabled=false
>
> ldap.bind.authenticator.enabled=false
>
>
>
> ldap.config.hostname=ad01.mycompany.com
>
> ldap.config.port=3268
>
> ldap.config.base.dn=DC=mycompany,DC=com
>
> ldap.config.context.factory=com.sun.jndi.ldap.LdapCtxFactory
>
> ldap.config.bind.dn=CN=LDAP Service,DC=mycompany,DC=com
>
> ldap.config.password=secret
>
> #ldap.config.authentication.method=
>
>
>
> Upon starting up Archiva, I'm getting the following error:
>
> org.codehaus.plexus.redback.common.ldap.connection.LdapException: Could not
> connect to the server. [Root exception is
> javax.naming.AuthenticationException: [LDAP: error code 49 - 80090308:
> LdapErr: DSID-0C09030B, comment: AcceptSecurityContext error, data 525, v893
> ]]
>
>                 at
> org.codehaus.plexus.redback.common.ldap.connection.LdapConnection.<init>(LdapConnection.java:81)
>
>                 at
> org.codehaus.plexus.redback.common.ldap.connection.ConfigurableLdapConnectionFactory.getConnection(ConfigurableLdapConnectionFactory.java:130)
>
>                 at
> org.codehaus.plexus.redback.users.ldap.LdapUserManager.newDirContext(LdapUserManager.java:338)
>
>                 at
> org.codehaus.plexus.redback.users.ldap.LdapUserManager.findUser(LdapUserManager.java:214)
>
>                 at
> org.codehaus.plexus.redback.users.configurable.ConfigurableUserManager.findUser(ConfigurableUserManager.java:111)
>
>                 at
> org.codehaus.plexus.redback.xwork.checks.security.GuestUserEnvironmentCheck.validateEnvironment(GuestUserEnvironmentCheck.java:82)
>
>                 at
> org.apache.maven.archiva.web.startup.SecuritySynchronization.executeEnvironmentChecks(SecuritySynchronization.java:151)
>
>                 at
> org.apache.maven.archiva.web.startup.SecuritySynchronization.startup(SecuritySynchronization.java:125)
>
>                 at
> org.apache.maven.archiva.web.startup.ArchivaStartup.contextInitialized(ArchivaStartup.java:56)
>
>                 at
> org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:539)
>
>                 at
> org.mortbay.jetty.servlet.Context.startContext(Context.java:135)
>
>                 at
> org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1216)
>
>                 at
> org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:509)
>
>                 at
> org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:447)
>
>                 at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
>
>                 at
> org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)
>
>                 at
> org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
>
>                 at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
>
>                 at
> org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)
>
>                 at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
>
>                 at
> org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117)
>
>                 at org.mortbay.jetty.Server.doStart(Server.java:222)
>
>                 at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
>
>                 at
> org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:977)
>
>                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>
>                 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
> Source)
>
>                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
> Source)
>
>                 at java.lang.reflect.Method.invoke(Unknown Source)
>
>                 at org.mortbay.start.Main.invokeMain(Main.java:194)
>
>                 at org.mortbay.start.Main.start(Main.java:509)
>
>                 at org.mortbay.start.Main.main(Main.java:119)
>
>                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>
>                 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
> Source)
>
>                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
> Source)
>
>                 at java.lang.reflect.Method.invoke(Unknown Source)
>
>                 at
> org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
>
>                 at java.lang.Thread.run(Unknown Source)
>
> Caused by: javax.naming.AuthenticationException: [LDAP: error code 49 -
> 80090308: LdapErr: DSID-0C09030B, comment: AcceptSecurityContext error, data
> 525, v893 ]
>
>                 at com.sun.jndi.ldap.LdapCtx.mapErrorCode(Unknown Source)
>
>                 at com.sun.jndi.ldap.LdapCtx.processReturnCode(Unknown
> Source)
>
>                 at com.sun.jndi.ldap.LdapCtx.processReturnCode(Unknown
> Source)
>
>                 at com.sun.jndi.ldap.LdapCtx.connect(Unknown Source)
>
>                 at com.sun.jndi.ldap.LdapCtx.<init>(Unknown Source)
>
>                 at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(Unknown
> Source)
>
>                 at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(Unknown
> Source)
>
>                 at
> com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(Unknown Source)
>
>                 at
> com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(Unknown Source)
>
>                 at javax.naming.spi.NamingManager.getInitialContext(Unknown
> Source)
>
>                 at javax.naming.InitialContext.getDefaultInitCtx(Unknown
> Source)
>
>                 at javax.naming.InitialContext.init(Unknown Source)
>
>                 at javax.naming.InitialContext.<init>(Unknown Source)
>
>                 at javax.naming.directory.InitialDirContext.<init>(Unknown
> Source)
>
>                 at
> org.codehaus.plexus.redback.common.ldap.connection.LdapConnection.<init>(LdapConnection.java:77)
>
>                 ... 36 more
>
>
>
>
>
> Thanks in advance J
>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message