You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@archiva.apache.org by Wolfgang Strunk <re...@st-werkstatt.de> on 2008/07/07 14:38:44 UTC

Re: LDAP problem

Hi Lucas,
did you get any answers to you post?
I faced the same problem and by looking into the logfile I saw parts of the
query:

2008-07-07 14:31:49,062 [SocketListener0-3] INFO 
org.codehaus.plexus.redback.authentication.Authenticator:ldap  - Searching
for users with filter: '(&(objectClass=inetOrgPerson)(cn=aperson))' from
base dn: null

The starting point for the query, i.e. base dn is "null" also I configured
it to be
ldap.config.base.dn=o=Directory

in security.properties. This seems  to be the root of the rrror, but I do
not know how to solve it.

Regads
Wolfgang


Lucas Gonçalves-3 wrote:
> 
> I configured security.properties for authenticate from ldap
> 
> 
> 	# 	--------------------------------------------------------------------
> 	# ldap settings
> 	#
> 	ldap.user.store.enabled=true
> 	ldap.bind.authenticator.enabled=true
> 	
> 	# ldap options for configuration via properties file
> 	ldap.config.hostname=192.168.1.32
> 	ldap.config.port=389
> 	ldap.config.base.dn=ou=Usuarios,dc=powerlogic,dc=com,dc=br
> 	ldap.config.context.factory=com.sun.jndi.ldap.LdapCtxFactory
> 	ldap.config.bind.dn=cn=Manager,dc=powerlogic,dc=com,dc=br
> 	ldap.config.password=MYPASSWORD
> 	#ldap.config.authentication.method=
> 
> ....
> 

-- 
View this message in context: http://www.nabble.com/LDAP-problem-tp15575936p18315746.html
Sent from the archiva-users mailing list archive at Nabble.com.


Re: LDAP problem

Posted by Wolfgang Strunk <ma...@st-werkstatt.de>.
Hi Emmanuel,
I currently use archiva 1.0.2. 
I finally succeeded to authenticate against ldap by pathching
redback-common-ldap-1.0-alpha-4.jar to contain all data for ldap access in
file components.xml. Obviously any changes of base dn in
"security.properties" or "application.xml" were ignored.

After solving the authentication another problem shows up: the users are not
known to Archiva and do not have any role assigned. They therfore can not
log in and don't show up in the user list. Here is an excerpt of the logfile

2008-07-07 16:36:42,875 [SocketListener0-0] INFO 
org.codehaus.plexus.redback.authentication.Authenticator:ldap  - Searching
for users with filter: '(&(objectClass=inetOrgPerson)(cn=aperson))' from
base dn: o=Directory
2008-07-07 16:36:42,890 [SocketListener0-0] INFO 
org.codehaus.plexus.redback.authentication.Authenticator:ldap  - Found
user?: true
2008-07-07 16:36:42,890 [SocketListener0-0] INFO 
org.codehaus.plexus.redback.authentication.Authenticator:ldap  - Attempting
Authenication: + cn=aperson,ou=users,o=Directory
2008-07-07 16:36:42,890 [SocketListener0-0] DEBUG
org.codehaus.plexus.redback.system.SecuritySystem:default  -
authnManager.authenticate() result:
AuthenticationResult[principal=taraneh,isAuthenticated=true,exception=<null>]
2008-07-07 16:36:42,890 [SocketListener0-0] DEBUG
org.codehaus.plexus.redback.system.SecuritySystem:default  - User 'aperson'
authenticated.
2008-07-07 16:36:42,890 [SocketListener0-0] DEBUG
org.codehaus.plexus.redback.system.SecuritySystem:default  - User 'aperson'
DOES NOT exist.

Does that mean I have to create every user in openLdap and in the internal
user database?

Can I download archiva 1.1 or is it only accessible via the subversion
repository? 

Regards
Wolfgang


Emmanuel Venisse-2 wrote:
> 
> What is your version?
> 
> I fixed some LDAP things in 1.1 (that will be released normally in few
> days)
> and I use it every days without issues.
> 
> Emmanuel
> 
> 

-- 
View this message in context: http://www.nabble.com/LDAP-problem-tp15575936p18319025.html
Sent from the archiva-users mailing list archive at Nabble.com.


Re: LDAP problem

Posted by Emmanuel Venisse <em...@gmail.com>.
What is your version?

I fixed some LDAP things in 1.1 (that will be released normally in few days)
and I use it every days without issues.

Emmanuel

On Mon, Jul 7, 2008 at 2:38 PM, Wolfgang Strunk <re...@st-werkstatt.de>
wrote:

>
> Hi Lucas,
> did you get any answers to you post?
> I faced the same problem and by looking into the logfile I saw parts of the
> query:
>
> 2008-07-07 14:31:49,062 [SocketListener0-3] INFO
> org.codehaus.plexus.redback.authentication.Authenticator:ldap  - Searching
> for users with filter: '(&(objectClass=inetOrgPerson)(cn=aperson))' from
> base dn: null
>
> The starting point for the query, i.e. base dn is "null" also I configured
> it to be
> ldap.config.base.dn=o=Directory
>
> in security.properties. This seems  to be the root of the rrror, but I do
> not know how to solve it.
>
> Regads
> Wolfgang
>
>
> Lucas Gonçalves-3 wrote:
> >
> > I configured security.properties for authenticate from ldap
> >
> >
> >       #
> --------------------------------------------------------------------
> >       # ldap settings
> >       #
> >       ldap.user.store.enabled=true
> >       ldap.bind.authenticator.enabled=true
> >
> >       # ldap options for configuration via properties file
> >       ldap.config.hostname=192.168.1.32
> >       ldap.config.port=389
> >       ldap.config.base.dn=ou=Usuarios,dc=powerlogic,dc=com,dc=br
> >       ldap.config.context.factory=com.sun.jndi.ldap.LdapCtxFactory
> >       ldap.config.bind.dn=cn=Manager,dc=powerlogic,dc=com,dc=br
> >       ldap.config.password=MYPASSWORD
> >       #ldap.config.authentication.method=
> >
> > ....
> >
>
> --
> View this message in context:
> http://www.nabble.com/LDAP-problem-tp15575936p18315746.html
> Sent from the archiva-users mailing list archive at Nabble.com.
>
>