Hi Michael, The ldapsearch is working fine with any user. I can retrieve the "mail" attribute perfectly using ldapsearch. But it seems that's not possible through DSpace. I forgot to mention that I'm working on the migration of an application from DSpace 5 to DSpace 8.2. The LDAP authentication works with no problem at the application running on DSpace 5.
Here's the authentication-ldap.cfg file configs (the ones I've set) authentication-ldap.enable = true authentication-ldap.autoregister = true authentication-ldap.provider_url = ldap://xxxxxxxx authentication-ldap.id_field = uid authentication-ldap.object_context = ou=people\,dc=ufrgs\,dc=br authentication-ldap.search_context = ou=people\,dc=ufrgs\,dc=br authentication-ldap.email_field = mail authentication-ldap.surname_field = ufrgsRestoNome authentication-ldap.givenname_field = ufrgsPrimeiroNome authentication-ldap.login.specialgroup = UFRGS authentication-ldap.search.user = xxxxxxx authentication-ldap.search.password = xxxxxxx Em quarta-feira, 6 de maio de 2026 às 05:49:54 UTC-3, Michael Plate escreveu: > Hi, > > Am 05.05.26 um 22:51 schrieb Guilherme Iepsen: > […] > > could you try "ldapsearch" (might to be installed first) ? You will find > the params usually in [dspace]/config/modules/authentication-ldap.cfg . > > ldapsearch -H <authentication-ldap.provider_url> -b > <authentication-ldap.search_context> -D > <authentication-ldap.search.user> -W -x "cn=<userid>" > > You need the password from <authentication-ldap.search.password> for > that. If this is an MS Active Directory, the attributes have different > names (mostly "cn" is "samaccountname"). > > You should get a bunch of info about the user specified in "cn=<userid>" > , mostly one or multiple "mail" attributes. The wanted one should be a > single attribute called "userPreferredEmail" (or "USERPREFERREDEMAIL", > its case insensitive). > > Hope it helps, > > Michael > > -- All messages to this mailing list should adhere to the Code of Conduct: https://lyrasis.org/code-of-conduct/ --- You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/dspace-tech/f85b302d-aba1-4d64-92e6-fd9eaa587cc0n%40googlegroups.com.
