Hi Rafael,

>             A few weeks ago I sent an email asking about updating LDAP fields
> when the user logged in. I¹ve tried modifying the ³authenticate² method in
> LDAPAuthentication.java, with no success. What I¹ve tried:
>             - if ldap.ldapAuthenticate returns on success, there¹s the command
> context.setCurrentUser(eperson) and it returns SUCCESS.
>             - in this same block I¹ve added lines to set the eperson email to
> the ldap one, update the eperson and commit the context.
> This didn¹t work, as it overrides the email which (by what I read in the logs)
> should still be the same old one in order for the login to work.
> Any suggestions? 

Are you using the JSPUI or the XMLUI?

If you are using the JSPUI, update the code in LDAPServlet instead. The
JSPUI is not properly using the stackable authentication system at present,
and uses the code in LDAPServlet instead.

Cheers,


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