Return-Path: Delivered-To: apmail-archiva-users-archive@www.apache.org Received: (qmail 47044 invoked from network); 25 Nov 2008 23:41:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Nov 2008 23:41:01 -0000 Received: (qmail 97807 invoked by uid 500); 25 Nov 2008 23:41:11 -0000 Delivered-To: apmail-archiva-users-archive@archiva.apache.org Received: (qmail 97768 invoked by uid 500); 25 Nov 2008 23:41:11 -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 97751 invoked by uid 99); 25 Nov 2008 23:41:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Nov 2008 15:41:11 -0800 X-ASF-Spam-Status: No, hits=-1.8 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of batkinson@usm.maine.edu designates 130.111.135.148 as permitted sender) Received: from [130.111.135.148] (HELO mail0.doit.usm.maine.edu) (130.111.135.148) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Nov 2008 23:39:42 +0000 Received: from uct5.uct.usm.maine.edu (uct5.doit.usm.maine.edu [130.111.135.97]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail0.doit.usm.maine.edu (Postfix) with ESMTP id B1AAFBA2C9 for ; Tue, 25 Nov 2008 18:40:23 -0500 (EST) Received: from UCT5-MTA by uct5.uct.usm.maine.edu with Novell_GroupWise; Tue, 25 Nov 2008 18:40:23 -0500 Message-Id: <492C46940200009D0001E71F@uct5.uct.usm.maine.edu> X-Mailer: Novell GroupWise Internet Agent 8.0.0 Date: Tue, 25 Nov 2008 18:40:20 -0500 From: "Brent Atkinson" To: Subject: Archiva 1.1.x and LDAP Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=__Part755D1DF4.0__=" X-USM-MailScanner-Watermark: 1228261227.51014@l/EScwEvRUor27mACaMhBg X-Virus-Checked: Checked by ClamAV on apache.org --=__Part755D1DF4.0__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi, =20 I recently upgraded from archiva 1.0.x to 1.1.3 and found that ldap = authentication is broken. Archiva 1.1.3 currently does not appear to work = with ldap.config.bind.dn. Although I haven't verified it yet, archiva = 1.2-M1 includes an updated redback with the fix. Hopefully I can save = someone else some time.=20 =20 ${appserver.base}/conf/security.properties: =20 user.manager.impl=3Dcached ldap.bind.authenticator.enabled=3Dtrue redback.default.admin=3Dadmin redback.default.guest=3Dguest security.policy.password.expiration.enabled=3Dfalse =20 ldap.config.hostname=3D127.0.0.1 ldap.config.port=3D389 ldap.config.base.dn=3Do=3Dlocaldomain ldap.config.context.factory=3Dcom.sun.jndi.ldap.LdapCtxFactory ldap.config.bind.dn=3Dcn=3DAdministrator,o=3Dlocaldomain ldap.config.password=3D******** =20 ldap.config.mapper.attribute.email=3Dmail ldap.config.mapper.attribute.fullname=3Dcn ldap.config.mapper.attribute.password=3DuserPassword ldap.config.mapper.attribute.user.id=3Duid ## This is set in application.xml due to another unrelated issue #ldap.config.mapper.attribute.user.base.dn=3Dou=3Dpeople,o=3Dlocaldomain ldap.config.mapper.attribute.user.object.class=3DinetOrgPerson =20 With this configuration, archiva fails to start and throws the following = stack trace: =20 org.codehaus.plexus.redback.common.ldap.connection.LdapException: Could = not connect to the server. [Root exception is javax.naming.InvalidNameExcep= tion: [LDAP: error code 34 - invalid DN]] at org.codehaus.plexus.redback.common.ldap.connection.LdapConnectio= n.(LdapConnection.java:81) at org.codehaus.plexus.redback.common.ldap.connection.ConfigurableL= dapConnectionFactory.getConnection(ConfigurableLdapConnectionFactory.java:1= 30) at org.codehaus.plexus.redback.users.ldap.LdapUserManager.newDirCon= text(LdapUserManager.java:338) at org.codehaus.plexus.redback.users.ldap.LdapUserManager.findUser(= LdapUserManager.java:214) at org.codehaus.plexus.redback.users.cached.CachedUserManager.findU= ser(CachedUserManager.java:126) at org.codehaus.plexus.redback.users.configurable.ConfigurableUserM= anager.findUser(ConfigurableUserManager.java:111) at org.codehaus.plexus.redback.xwork.checks.security.GuestUserEnvir= onmentCheck.validateEnvironment(GuestUserEnvironmentCheck.java:82) at org.apache.maven.archiva.web.startup.SecuritySynchronization.exe= cuteEnvironmentChecks(SecuritySynchronization.java:151) at org.apache.maven.archiva.web.startup.SecuritySynchronization.sta= rtup(SecuritySynchronization.java:125) at org.apache.maven.archiva.web.startup.ArchivaStartup.contextIniti= alized(ArchivaStartup.java:56) at org.apache.catalina.core.StandardContext.listenerStart(StandardC= ontext.java:3764) ... The issue is with redback: http://jira.codehaus.org/browse/REDBACK-154.=20 --=__Part755D1DF4.0__=--