From users-return-8379-apmail-continuum-users-archive=continuum.apache.org@continuum.apache.org Tue Jul 26 19:41:28 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 8E7C27781 for ; Tue, 26 Jul 2011 19:41:28 +0000 (UTC) Received: (qmail 6073 invoked by uid 500); 26 Jul 2011 19:41:28 -0000 Delivered-To: apmail-continuum-users-archive@continuum.apache.org Received: (qmail 5994 invoked by uid 500); 26 Jul 2011 19:41:27 -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 5986 invoked by uid 99); 26 Jul 2011 19:41:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Jul 2011 19:41:27 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FH_FROMEML_NOTLD,FREEMAIL_FROM,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 (nike.apache.org: domain of pedro.larva@gmail.com designates 209.85.160.171 as permitted sender) Received: from [209.85.160.171] (HELO mail-gy0-f171.google.com) (209.85.160.171) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Jul 2011 19:41:20 +0000 Received: by gyh20 with SMTP id 20so662488gyh.2 for ; Tue, 26 Jul 2011 12:40:58 -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=8ADGreMwLHj/+ihgXrIdDD/ieR0T5u01BzzF9PBiweo=; b=WY3fYRB8F4XfYImq3M9LpnxmWLfIgUTbB+rY0GzVqrSiD4JDHVtw1lg5rHYYJ+yFIg GsNQ4I1/hMWENa1DX9U2sdmeuRcVGcDkZKeWig1SREycxI8rOZ+O7wrnq968aRoX1qQl WFEKZJzQ0x1awO3Uj4F1rCakrrXBAPpFRLn7g= MIME-Version: 1.0 Received: by 10.236.176.231 with SMTP id b67mr7158591yhm.134.1311709258746; Tue, 26 Jul 2011 12:40:58 -0700 (PDT) Received: by 10.236.111.9 with HTTP; Tue, 26 Jul 2011 12:40:58 -0700 (PDT) In-Reply-To: References: Date: Tue, 26 Jul 2011 16:40:58 -0300 Message-ID: Subject: Re: I need a help to ldap and archiva From: "Pedro M. Leite \"" To: users@continuum.apache.org Content-Type: multipart/alternative; boundary=20cf305b12786a8a6204a8fe1caa X-Virus-Checked: Checked by ClamAV on apache.org --20cf305b12786a8a6204a8fe1caa Content-Type: text/plain; charset=ISO-8859-1 thanks However it is my ldap openldap. After I sent the email, I got to work only with the configuration by security.properties. So that is not good, is giving many errors. -- Pedro Macedo Leite" 2011/7/26 Louis Smith > 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 > -- Pedro Macedo Leite " --20cf305b12786a8a6204a8fe1caa--