Return-Path: Delivered-To: apmail-continuum-issues-archive@www.apache.org Received: (qmail 5756 invoked from network); 24 Mar 2009 12:41:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Mar 2009 12:41:42 -0000 Received: (qmail 16561 invoked by uid 500); 24 Mar 2009 12:41:42 -0000 Delivered-To: apmail-continuum-issues-archive@continuum.apache.org Received: (qmail 16538 invoked by uid 500); 24 Mar 2009 12:41:42 -0000 Mailing-List: contact issues-help@continuum.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@continuum.apache.org Delivered-To: mailing list issues@continuum.apache.org Received: (qmail 16528 invoked by uid 99); 24 Mar 2009 12:41:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Mar 2009 12:41:42 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [63.246.2.115] (HELO codehaus01.managed.contegix.com) (63.246.2.115) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Mar 2009 12:41:33 +0000 Received: from codehaus01.managed.contegix.com (localhost.localdomain [127.0.0.1]) by codehaus01.managed.contegix.com (Postfix) with ESMTP id ED71A14A8163 for ; Tue, 24 Mar 2009 07:41:12 -0500 (CDT) Message-ID: <13158093.1237898472952.JavaMail.haus-jira@codehaus01.managed.contegix.com> Date: Tue, 24 Mar 2009 07:41:12 -0500 (CDT) From: "Patric Lichtsteiner (JIRA)" To: issues@continuum.apache.org Subject: [jira] Commented: (CONTINUUM-2031) continuum :: redback :: security.properties not overriding properly application.xml In-Reply-To: <21697473.1231113799666.JavaMail.haus-jira@codehaus01.managed.contegix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 4e90ceb663894a42f12c0e28abbab431 X-Virus-Checked: Checked by ClamAV on apache.org [ http://jira.codehaus.org/browse/CONTINUUM-2031?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=170794#action_170794 ] Patric Lichtsteiner commented on CONTINUUM-2031: ------------------------------------------------ Same issue with 1.2.3 > continuum :: redback :: security.properties not overriding properly application.xml > ------------------------------------------------------------------------------------ > > Key: CONTINUUM-2031 > URL: http://jira.codehaus.org/browse/CONTINUUM-2031 > Project: Continuum > Issue Type: Bug > Affects Versions: 1.2.2 > Environment: apache-tomcat-6.0.18 > Maven version: 2.0.9 > Java version: 1.6.0_03 > OS name: "linux" version: "2.6.18-6-amd64" arch: "amd64" Family: "unix" > Reporter: Richard Gomes > > in webapps/continuum/WEB-INF/classes/META-INF/plexus/application.xml I 'hardcoded' my user.base.dn as ou=People,dc=jquantlib,dc=org, as shown below: > > org.codehaus.plexus.redback.common.ldap.UserMapper > ldap > org.codehaus.plexus.redback.common.ldap.LdapUserMapper > > email > givenName > userPassword > cn > ou=People,dc=jquantlib,dc=org > inetOrgPerson > > > > org.codehaus.plexus.redback.configuration.UserConfiguration > > > > I was obliged to do it in this file and repackage the .WAR file because the value specified is not properly loaded. > For instance, if I defined > user.manager.impl=ldap > ldap.bind.authenticator.enabled=true > redback.default.admin=admin > redback.default.guest=guest > security.policy.password.expiration.enabled=false > user.manager.impl=cached > ldap.bind.authenticator.enabled=true > ldap.config.hostname=localhost > ldap.config.port=389 > ldap.config.base.dn=dc=jquantlib,dc=org > ldap.config.context.factory=com.sun.jndi.ldap.LdapCtxFactory > ldap.config.bind.dn=cn=admin,dc=jquantlib,dc=org > ldap.config.password=secret > #ldap.config.authentication.method= > ldap.config.mapper.attribute.email=mail > ldap.config.mapper.attribute.fullname=givenName > ldap.config.mapper.attribute.password=userPassword > ldap.config.mapper.attribute.user.id=cn > #ldap.config.mapper.attribute.user.base.dn=ou=People,dc=jquantlib,dc=org > ldap.config.mapper.attribute.user.object.class=inetOrgPerson > #ldap.config.mapper.attribute.user.filter= > As a matter of test, I changed user.base.dn as show below: > ldap.config.mapper.attribute.user.base.dn=ou=Test,dc=jquantlib,dc=org > In continnum.log it shows like this: > INFO ldapController - Searching for users with filter: '(&(objectClass=inetOrgPerson)(cn=guest))' from base dn: ou=Test > If I comment out that line... > #ldap.config.mapper.attribute.user.base.dn=ou=Test,dc=jquantlib,dc=org > it show like this in the logfile: > INFO ldapController - Searching for users with filter: '(&(objectClass=inetOrgPerson)(cn=guest))' from base dn: ou=People,dc=jquantlib,dc=org > It means that "ou=Test,dc=jquantlib,dc=org" was wrongly read as "ou=Test" > Thanks > Richard Gomes > http://www.jquantlib.org/index.php/User:RichardGomes -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira