[
http://jira.codehaus.org/browse/MRM-711?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=128999#action_128999
]
Maria Odea Ching commented on MRM-711:
--------------------------------------
I'm able to replicate this already, and I think the problem is with the
Registry.. when it looks up the properties for the ldap configuration, it cuts
the property values which has the ',' character (e.g.
ldap.config.bind.dn=cn=Manager,dc=powerlogic,dc=com,dc=br). So the bind.dn
becomes only this --> cn=Manager instead of
cn=Manager,dc=powerlogic,dc=com,dc=br. The same goes with the base.dn property.
We encountered the same problem before with the cron expressions in the archiva
config. Redback and Archiva are both using the commons-config plexus registry
implementation. I'll file this issue in Redback and fix it there.
> Security using ldap throws NullPointerException
> -----------------------------------------------
>
> Key: MRM-711
> URL: http://jira.codehaus.org/browse/MRM-711
> Project: Archiva
> Issue Type: Bug
> Components: Users/Security
> Affects Versions: 1.0.1
> Environment: Ubuntu Linux, Open-ldap
> Reporter: Lucas Vilela de Souza Gonçalves
> Assignee: Maria Odea Ching
> Priority: Critical
> Fix For: 1.1
>
>
> I configured ~/.m2/security.properties with ldap information.
> In DefaultArchivaConfiguration the Registry load all informations of
> security.properties.
> When i was loggin throws this Exception:
> java.lang.NullPointerException
>
> org.codehaus.plexus.redback.common.ldap.connection.LdapConnection.<init>(LdapConnection.java:58)
>
> org.codehaus.plexus.redback.common.ldap.connection.ConfigurableLdapConnectionFactory.getConnection(ConfigurableLdapConnectionFactory.java:123)
>
> org.codehaus.plexus.redback.authentication.ldap.LdapBindAuthenticator.authenticate(LdapBindAuthenticator.java:92)
> I got redback source code, and i see that any information of ldap was there
> in LdapConnection!
--
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