Return-Path: Delivered-To: apmail-archiva-users-archive@www.apache.org Received: (qmail 5808 invoked from network); 18 Aug 2008 10:34:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Aug 2008 10:34:52 -0000 Received: (qmail 22939 invoked by uid 500); 18 Aug 2008 10:34:50 -0000 Delivered-To: apmail-archiva-users-archive@archiva.apache.org Received: (qmail 22895 invoked by uid 500); 18 Aug 2008 10:34:49 -0000 Mailing-List: contact users-help@archiva.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@archiva.apache.org Delivered-To: mailing list users@archiva.apache.org Received: (qmail 22884 invoked by uid 99); 18 Aug 2008 10:34:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Aug 2008 03:34:49 -0700 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of emmanuel.venisse@gmail.com designates 66.249.90.183 as permitted sender) Received: from [66.249.90.183] (HELO ik-out-1112.google.com) (66.249.90.183) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Aug 2008 10:33:49 +0000 Received: by ik-out-1112.google.com with SMTP id c29so2317655ika.7 for ; Mon, 18 Aug 2008 03:34:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=wMImH9TfTtY+6yw6bjCDitZ2VrNdyPB8Rv7okbBZUg4=; b=ToIY+F9831cFHOE1l7DpWgw4LcBBDPTfOklzdA/dV2Ep5zOXNj6+lOE2Q4Wkkdunx2 ntnToou8eMA2oIHqxVOpgjcTEeKoEcy/KSLuoOROtAe/3Y9EVixEF8bDtJft3Guw2AHn E0QXr2u4JSUm3Lk20HN+dGx1o1Ylmqkg2F+II= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=ROi0TGi6fDAeOoAT/JwbVytBgXRfDtBqo2Qvc+gmdCu2o/p6VNLDDe5RRAYptAwRE2 8632U+P+1dMuuneMwyMQw2B6DoNpq/YjdSbO82Sw7ttPsPjM8kHcd2SDIq722xUJz9OB HYPPHEujrOwFId8s0B4+W1yj3aK96md41gFZM= Received: by 10.210.45.17 with SMTP id s17mr7793867ebs.9.1219055656196; Mon, 18 Aug 2008 03:34:16 -0700 (PDT) Received: by 10.210.40.1 with HTTP; Mon, 18 Aug 2008 03:34:16 -0700 (PDT) Message-ID: Date: Mon, 18 Aug 2008 12:34:16 +0200 From: "Emmanuel Venisse" To: users@archiva.apache.org Subject: Re: Archiva LDAP Problem In-Reply-To: <18997890.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_18140_7607035.1219055656180" References: <1a57a2980808131830t1c451316xe8240e7cf267f7ef@mail.gmail.com> <18997890.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_18140_7607035.1219055656180 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Do you have something in logs? Emmanuel On Fri, Aug 15, 2008 at 2:32 PM, alexmoss wrote: > > Just wanted to add that I seem to be having the same problem - our settings > are very similar to the original posters, i.e. spaces in the bind.dn. > > user.manager.impl=ldap > ldap.user.store.enabled=false > ldap.bind.authenticator.enabled=false > > # ldap options for configuration via properties file > ldap.config.hostname=net.adserver.co.uk > ldap.config.port=389 > ldap.config.base.dn=dc=net,dc=adserver,dc=co,dc=uk > ldap.config.context.factory=com.sun.jndi.ldap.LdapCtxFactory > ldap.config.bind.dn=CN=ArchivaLDAPUser,OU=Service Accounts,OU=Centralised > Accounts,dc=net,dc=adserver,dc=co,dc=uk > ldap.config.password=******* > #ldap.config.authentication.method= > > Have tried various combinations of the settings but always the same - a > "user not found" ldap error connecting to Active Directory at startup as > below (Archiva 1.1.1, although I'm using Tomcat/MySQL). > > -- > Alex > > > Maria Odea Ching-5 wrote: > > > > 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 > > 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.(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.(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.(Unknown Source) > >> > >> at > >> javax.naming.directory.InitialDirContext.(Unknown > >> Source) > >> > >> at > >> > org.codehaus.plexus.redback.common.ldap.connection.LdapConnection.(LdapConnection.java:77) > >> > >> ... 36 more > >> > >> > >> > >> > >> > >> Thanks in advance J > >> > >> > >> > > > > > > -- > View this message in context: > http://www.nabble.com/Re%3A-Archiva-LDAP-Problem-tp18974337p18997890.html > Sent from the archiva-users mailing list archive at Nabble.com. > > ------=_Part_18140_7607035.1219055656180--