[GeoNetwork-users] LDAP Geonetwork Integration

Hello,

I am integrating OpenLdap with Geonetwork. Setup a default OpenLdap with
default settings as shown in this url
https://help.ubuntu.com/10.10/serverguide/C/openldap-server.html

Then through Admin Panel in Geonetwork Under System Configurations changed
Authentication to LDAP with the following settings

Host : localhost

Port : 389

Default Profile : Registered User

Uid: john

Distinguished Names:

                Base : dc=example,dc=com

                Users: ou=people

User's attributes

                Name: John

                Profile: profile

Now I logout and then try to Login with the following userid/password
combinations

admin / secret

cn=admin,dc=example,dc=com / secret

uid=john,ou=people,dc=example,dc=com / password

For everything I get

2011-04-18 06:22:42,052 WARN [geonetwork.ldap] - Cannot open context on :
ldap://localhost:389

2011-04-18 06:22:42,052 WARN [geonetwork.ldap] - (C) Reason : [LDAP: error
code 34 - invalid DN]

I tried to connect to Directory using the above DN using JXplorer and I was
able to connect to.Just wanted to make sure if LDAP settings were correct.

I am doing something wrong on the Geonetwork side. Can anyone please let me
know where we are going wrong? Thanks

Regards

Kumaran

Did you try:
user: john
password: what ever it is?

you can put the ldap module into debug logging - thay may give you more info

in the log4j.cfg (or logging.properties or whatever is used by GN) try something like:

log4j.logger.geonetwork.ldap = DEBUG

restart your container (tomcat?) and try again.

GN tries to search for the bindDN, and if it cant find it, it guesses based on the common practices.

I am guessing the error relates to the wrong bindDN being constructed and that the debug log levels should show this.

Regards,
Terry Rankine

________________________________
From: Kumaran Narayanaswamy [kumaran.narayanaswamy@anonymised.com]
Sent: Monday, 18 April 2011 9:40 PM
To: geonetwork-users@lists.sourceforge.net; geonetwork-devel@anonymised.comrge.net
Subject: [GeoNetwork-devel] LDAP Geonetwork Integration

Hello,

I am integrating OpenLdap with Geonetwork. Setup a default OpenLdap with default settings as shown in this url https://help.ubuntu.com/10.10/serverguide/C/openldap-server.html

Then through Admin Panel in Geonetwork Under System Configurations changed Authentication to LDAP with the following settings

Host : localhost
Port : 389
Default Profile : Registered User
Uid: john
Distinguished Names:
                Base : dc=example,dc=com
                Users: ou=people

User’s attributes
                Name: John
                Profile: profile

Now I logout and then try to Login with the following userid/password combinations

admin / secret
cn=admin,dc=example,dc=com / secret
uid=john,ou=people,dc=example,dc=com / password

For everything I get

2011-04-18 06:22:42,052 WARN [geonetwork.ldap] - Cannot open context on : ldap://localhost:389
2011-04-18 06:22:42,052 WARN [geonetwork.ldap] - (C) Reason : [LDAP: error code 34 - invalid DN]

I tried to connect to Directory using the above DN using JXplorer and I was able to connect to.Just wanted to make sure if LDAP settings were correct.

I am doing something wrong on the Geonetwork side. Can anyone please let me know where we are going wrong? Thanks

Regards
Kumaran