Hello,

I'm using Active Directory for DSpace authentication for years. A few
comments and suggestions:

- comment out the object_context. I don't know what it does, but we have it
commented out and ours works
- set the search context to the root of the directory, ie:
DC=satc,DC=edu,Dc=br

You're using the subtree search scope (2) so it makes sense to start at the
top of the tree and let it search down for the user.

Regards,

On Wed, Nov 20, 2019 at 9:50 AM Anda <[email protected]> wrote:

>
> Dear Marcelo,
>
> Did You resolve this problem?
> We have the same issue. I don't know what to do.
>
> Thanks You!
>
> Anda
>
> trešdiena, 2017. gada 11. oktobris 02:05:49 UTC+3, Marcelo Silveira
> rakstīja:
>>
>> This is my LDAP configuration file.
>>
>> enable = true
>> autoregister = true
>> provider_url = ldap://satc.edu.br/
>> id_field = sAMAccountName
>> object_context = ou=Users,DC=satc,DC=edu,DC=br
>> search_context = OU=Users,DC=satc,DC=edu,DC=br
>> email_field = mail
>> surname_field = sn
>> givenname_field = givenName
>> phone_field = telephoneNumber
>> search_scope = 2
>> search.user = CN=Administrador,CN=Users,DC=satc,DC=edu,DC=br
>> search.password = Password
>>
>> If I try to perform a search on the server where dspace is installed,
>> using the command:
>>
>> *ldapsearch -h satc.edu.br <http://satc.edu.br> -b "DC=satc,DC=edu,Dc=br"
>> -D "CN=Administrador,CN=Users,DC=satc,DC=edu,DC=br" -w Password
>> "(sAMAccountName=marcelo.silveira)"*
>>
>> It returns me the user data normally
>>
>> But when I try to log in using LDAP, it informs that the user is invalid.
>> Any idea? I have already tried setting up using the \, without it, and
>> all cause the same problem.
>>
> --
> All messages to this mailing list should adhere to the DuraSpace Code of
> Conduct: https://duraspace.org/about/policies/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 on the web visit
> https://groups.google.com/d/msgid/dspace-tech/f9c1768e-2317-4c8d-96f4-c9e0d1ba2ad0%40googlegroups.com
> <https://groups.google.com/d/msgid/dspace-tech/f9c1768e-2317-4c8d-96f4-c9e0d1ba2ad0%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Alan Orth
[email protected]
https://picturingjordan.com
https://englishbulgaria.net
https://mjanja.ch
"In heaven all the interesting people are missing." ―Friedrich Nietzsche

-- 
All messages to this mailing list should adhere to the DuraSpace Code of 
Conduct: https://duraspace.org/about/policies/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 on the web visit 
https://groups.google.com/d/msgid/dspace-tech/CAKKdN4UL2AycAaev2ShO%3DmVcuQT0G79pBw6qT25vd4CVJFNrzQ%40mail.gmail.com.

Reply via email to