Hi Gagan,

> WARN  org.dspace.app.webui.servlet.LDAPServlet @
> anonymous:session_id=A130D27F3AD231DBB55C6AC575F2D972:ip_addr=127.0.0.1:l*dap_
> authentication:type=failed_auth
> javax.naming.AuthenticationException: [LDAP:
> 
> error code 49 - User login: not valid credential]*

> _login:netid=gopal.chandavarapu

A great tool for debugging LDAP problems is the LDAP browser:

 - http://www.mcs.anl.gov/~gawor/ldap/download.html

If you can get your settings to work in the LDAP browser, they should work
in DSpace OK.

The first thing to know is what is the DN of a user in your LDAP tree. An
example might be:

 - CN=stuart,OU=users,DC=testathon,DC=net

Once you know this you can generally work out the rest.

In this case, if in the LDAP browser you enter the server name, you put that
in as the username, enter your password, then you should be able to log in
and explore the LDAP tree.

Next, in dspace.cfg set your LDAP server details:

dap.provider_url = ldap://ldap.testathon.net:389/

Then enter the attribute that holds the netid (login) attribute:

 - ldap.id_field = cn

The next two settings are generally the same, and are everything apart from
your username at the beginning. E.g.:

 - ldap.object_context = OU=users,DC=testathon,DC=net
 - ldap.search_context = OU=users,DC=testathon,DC=net

Finally you can set the attributes which hold the email address, surname,
first name, and telephone number of each user:

 - ldap.email_field = mail
 - ldap.surname_field = sn
 - ldap.givenname_field = givenName
 - ldap.phone_field = telephoneNumber

Thanks,


Stuart
_________________________________________________________________

Gwasanaethau Gwybodaeth                      Information Services
Prifysgol Aberystwyth                      Aberystwyth University

            E-bost / E-mail: [EMAIL PROTECTED]
                 Ffon / Tel: (01970) 622860
_________________________________________________________________


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to