LDAP - AD User Sync failed

LDAP - AD User Sync failed

by Ambrish Tiwari -
Number of replies: 4

Hello 

I am using Moodle 3.5.2+ (Build: 20180920) on windows 10. I want to configure AD access. Below is my configuration 

Host URL :         ldap://dc.domainname.com/

Version  :          3

Use TLS  :         No

LDAP encoding  :  utf8

Page size : 250

Distinguished name : Dc=dc,dc=domainname,DC=com

Password:  empty

Context  : ou=moodle,dc=dc,dc=domainname,dc=com

Search subcontexts :  Yes

Dereference aliases : Yes

User attribute : samaccountname


Under Data Mapping Section

Data mapping (First name) : givenName

Data mapping (Surname) : sn

Data mapping (Email address) : email


Rest everything is as it was. 

The error which I am getting when trying to Run LDAP users sync job from Scheduler Task is:

Not sure what's going wrong. Please help! 

LDAP User Sync issue


Average of ratings: -
In reply to Ambrish Tiwari

Re: LDAP - AD User Sync failed

by Emma Richardson -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers

Is the test connection working ok?  Can users log in?  If you are using a bind user, you need to put the full name of the user and the password there - if not, that should be blank...

In reply to Emma Richardson

Re: LDAP - AD User Sync failed

by Ambrish Tiwari -

Yes, the test connection is working. No, the users are not able to log in

So should the remove this DC=dc,DC=domainname,DC=com and just add the username and password for accessing AD?

OR 

CN=Ambrish,DC=dc,DC=domainname,DC=com and the password to login to AD?

In reply to Emma Richardson

Re: LDAP - AD User Sync failed

by Ambrish Tiwari -

Thanks, Emma


The AD Sync user is working now. It should be CN = Ambrish, Dc=dc,DC=domainname,Dc=com. 

And the password of CN user i.e. Ambrish 

 

In reply to Ambrish Tiwari

Re: LDAP - AD User Sync failed

by Ambrish Tiwari -

Hello Emma,


I have a query. I was able to log in using the AD on a windows machine. I have an Ubuntu 16.04 TLS desktop version when I am trying the same configuration is not working out. Also, the Ubuntu machine is not connected to my AD while in case of windows machine it was connected to the AD.

So is it mandatory that the machine needs to be connected to the AD network for working of Moodle AD configuration?

LDAP users sync job ubuntu