Moodle version - 3.4.
Below LDAP details are verified by ADMIN of Active Directory.
I am getting error as -
Test authentication settings - LDAP server
- LDAP server settings section
- Host URL: ldap://192.168.x.x
- Use TLS: No
- Verison: 3
- LDAP encoding: utf-8
- Bind settings
- Don't cache passwords: Yes
- Distinguished name: CN=RG IN USER, OU=UsersFunctional,OU=_Central,OU=IN,OU=RA003,DC=ad001,DC=sts,DC=net
- Password: Pass-Word
- User lookup settings
- User Type: MS Active Directory
- Contexts: DC=ad001,DC=sts,DC=net
- Search subcontexts: Yes
- Dereference aliases: No
- User attribute: samaccountname
- Member attribute uses dn: 1
- Force change password
- Password format: Plain text
- Data mapping
- First name: givenName
- Surname: sn
- Email address: mail
- Distinguished name: CN=RG IN USER, OU=UsersFunctional, OU=_Central,OU=IN,OU=RA003,DC=ad001,DC=sts,DC=net
RG IN USER is able to search any user inside DC=ad001,DC=sts,DC=net. I tested this using LDP.exe. Please check below details. Server on which Moodle is hosted is also part of domain.
Settings Inside LDP
- Open LDP.EXE
- Bind to IP Address. Enter 192.x.x.x
- Domain = AD001, User = Z00369HG [ It is above user - RG IN USER) , Password - Enter Password
- Click on Bind
- User can see message of Success.
- Select Browse, Select Context as DC=ad001,DC=sts,DC=net
- Click on Search
- Path = DC=ad001,DC=sts,DC=net
- Search Criteria = (samAccountName=Z003948)
- Click on OK
- It searches and returns details of Z003948 user