From users-return-8378-apmail-continuum-users-archive=continuum.apache.org@continuum.apache.org Tue Jul 26 17:30:05 2011 Return-Path: X-Original-To: apmail-continuum-users-archive@www.apache.org Delivered-To: apmail-continuum-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 30C5A7907 for ; Tue, 26 Jul 2011 17:30:05 +0000 (UTC) Received: (qmail 13634 invoked by uid 500); 26 Jul 2011 17:30:04 -0000 Delivered-To: apmail-continuum-users-archive@continuum.apache.org Received: (qmail 13563 invoked by uid 500); 26 Jul 2011 17:30:04 -0000 Mailing-List: contact users-help@continuum.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@continuum.apache.org Delivered-To: mailing list users@continuum.apache.org Received: (qmail 13555 invoked by uid 99); 26 Jul 2011 17:30:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Jul 2011 17:30:03 +0000 X-ASF-Spam-Status: No, hits=4.4 required=5.0 tests=FILL_THIS_FORM_FRAUD_PHISH,FREEMAIL_FROM,FREEMAIL_REPLY,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_FILL_THIS_FORM_SHORT,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of dr.louis.smith@gmail.com designates 74.125.82.45 as permitted sender) Received: from [74.125.82.45] (HELO mail-ww0-f45.google.com) (74.125.82.45) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Jul 2011 17:29:58 +0000 Received: by wwj40 with SMTP id 40so617603wwj.14 for ; Tue, 26 Jul 2011 10:29:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=0Uoms/OzLBFJgZAxvHejclPyBQwDWObAZi2U7aG2Rqg=; b=SRauWHUbZusDaoeLnogLgtG22DG0Dj1/xYo+Sn2y5XwQpQb/kpChK+vz4RqiNPVmSY e6z+qXnnjKV/avbUc/HM1AEyO25DqYhg6cdheMrI4Mb2GjRBUDbQZhi0yZhSsDlg/qjX 3UK5b8XNkUl6AZHzIH/HZI8grJs/nZ+Hfr/tU= MIME-Version: 1.0 Received: by 10.223.146.1 with SMTP id f1mr7714340fav.48.1311701376232; Tue, 26 Jul 2011 10:29:36 -0700 (PDT) Received: by 10.223.36.201 with HTTP; Tue, 26 Jul 2011 10:29:36 -0700 (PDT) In-Reply-To: References: Date: Tue, 26 Jul 2011 13:29:36 -0400 Message-ID: Subject: Re: I need a help to ldap and archiva From: Louis Smith To: users@continuum.apache.org Content-Type: multipart/alternative; boundary=0023545beb6c94ee6d04a8fc46b4 --0023545beb6c94ee6d04a8fc46b4 Content-Type: text/plain; charset=ISO-8859-1 It is easy, but detailed.... it does work, I have it in several installations of my own and in client sites for heavy production usage. In the security.properties file, you must specify the redback.default.admin - it MUST be an EXISTING account in the LDAP. It must be found at the config.base All fields MUST be mapped to the correct LDAP entries. The security.properties and the application.xml have to match perfectly in the definitions... This is the security.properties file from my notebook: user.manager.impl=ldap ldap.bind.authenticator.enabled=true ldap.config.context.factory=com.sun.jndi.ldap.LdapCtxFactory # # BinaryStar LDAP (my dual core notebook) # ldap.config.hostname=localhost ldap.config.base.dn=ou=External Users,ou=users,dc=locahost,dc=com ldap.config.port=389 ldap.config.mapper.attribute.user.id=orclSAMAccountName ldap.config.mapper.attribute.user.email=orclSAMAccountName ldap.config.mapper.attribute.user.fullname=givenName ldap.config.mapper.attribute.user.password=userPassword redback.default.admin=Dr.Louis.Smith@gmail.com redback.default.guest=guest security.policy.password.expiration.enabled=false and this is from the application.xml: org.codehaus.plexus.redback.common.ldap.UserMapper ldap org.codehaus.plexus.redback.common.ldap.LdapUserMapper orclSAMAccountName givenName userPassword uid ou=External Users,ou=users,dc=localhost,dc=com inetOrgPerson org.codehaus.plexus.redback.configuration.UserConfiguration Triple-check everything. And the final hint: Verify that you can connect to the LDAP anonymously, and that you can search for and find the defined admin userid by DN On Tue, Jul 26, 2011 at 1:06 PM, Pedro M. Leite " wrote: > Hello, I need a help from you. > > I'm trying to configure to authenticate to an Archiva ldap I have. Ja > followed several posts. > However various posts led me to a problem. > When I set up security.properties and / or the application.xml and restart > the > server, it goes without error and put me a screen to create the admin. > So far so good, the problem that this creation screen has no time for > typing, > so I can not fill in the fields. > With this he gave me the information below: > Create Admin User > Username: admin > Full Name is required. > Full Name: > Email Address is required. > Email Address: > > Help me please. > > -- > Pedro Macedo Leite " > -- Dr. Louis Smith, ThD Chief Technology Officer, Kyra InfoTech Colonel, Commemorative Air Force --0023545beb6c94ee6d04a8fc46b4--