Connecting to your LDAP server was successful with default settings but not worked if I add distinguished name

Connecting to your LDAP server was successful with default settings but not worked if I add distinguished name

by Vishal Lanke -
Number of replies: 0

Inside LDAP server settings, I entered only HostURL and keep rest field as it is. I do not add Bind -> distinguishedName or Context. I clicked on Test Connection. I can see message as Connection to LDAP server is successful. However, LDAP roles sync job does not work. 

Execute scheduled task: LDAP users sync job (Sync Plus) (auth_ldap_syncplus\task\sync_task)
... started 04:06:01. Current memory use 7.4MB.
Connecting to LDAP server...

Creating temporary table tmp_extuser


Warning: ldap_search(): Search: Operations error in C:\Bitnami\moodle-3.4\apps\moodle\htdocs\auth\ldap_syncplus\auth.php on line 117
Did not get any users from LDAP -- error? -- exiting

However, if I entered distinguishedName and password, I can see below message- LDAP paged results not supported (either your PHP version lacks support, you have configured Moodle to use LDAP protocol version 2 or Moodle cannot contact your LDAP server to see if paged support is available.)  However, LDAP roles sync job does not work. 

Execute scheduled task: LDAP users sync job (Sync Plus) (auth_ldap_syncplus\task\sync_task)
... started 04:05:01. Current memory use 7.4MB.
Connecting to LDAP server...

... used 0 dbqueries
... used 0.062041044235229 seconds
Scheduled task failed: LDAP users sync job (Sync Plus) (auth_ldap_syncplus\task\sync_task),LDAP-module cannot connect to any servers: Server: 'ldap://INTHAADC01A.ad001.siemens.net/', Connection: 'Resource id #608', Bind result: ''

Is  it mandatory to provide distinguishedName ? 

First time text connection is successful but second time not. Why ? Is it depend on  distinguishedName ?


Average of ratings: -