LDAP user sync incorrectly proceeds when LDAP list or search fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
Medium
|
Ghada El-Zoghbi | ||
15.04 |
Fix Released
|
Medium
|
Unassigned | ||
15.10 |
Fix Released
|
Medium
|
Unassigned | ||
16.04 |
Fix Released
|
Medium
|
Unassigned | ||
16.10 |
Fix Released
|
Medium
|
Ghada El-Zoghbi |
Bug Description
Mahara: 16.04
DB: Postgres
OS: Linux
The LDAP user sync is incorrectly continuing when the search in the context fails to contact the server.
The following error is generated in the cron.log file:
Jul 29 00:01:05 server mahara-site: [WAR] 29 (auth/ldap/
Jul 29 00:01:05 server mahara-site: Call stack (most recent first):
Jul 29 00:01:05 server mahara-site: * log_message(
at /var/www/
Jul 29 00:01:05 server mahara-site: * error(2, "ldap_list(): Search: Can't contact LDAP server", "/var/www/
t Unknown:0
Jul 29 00:01:05 server mahara-site: * ldap_list(
Jul 29 00:01:05 server mahara-site: * AuthLdap-
121
Jul 29 00:01:05 server mahara-site: * AuthLdap-
Jul 29 00:01:05 server mahara-site: * PluginAuthLdap:
Jul 29 00:01:05 server mahara-site: * call_user_
Jul 29 00:01:05 server mahara-site: * call_static_
It then proceeds to sync the users:
Jul 29 00:01:05 server mahara-site: [WAR] 29 (auth/ldap/
Jul 29 00:01:05 server mahara-site: Call stack (most recent first):
Jul 29 00:01:05 server mahara-site: * log_message(
", 940) at /var/www/
Jul 29 00:01:05 server mahara-site: * error(2, "ldap_first_entry() expects parameter 2 to be resou...", "/var/www/
12)) at Unknown:0
Jul 29 00:01:05 server mahara-site: * ldap_first_
Jul 29 00:01:05 server mahara-site: * AuthLdap-
Jul 29 00:01:05 server mahara-site: * AuthLdap-
Jul 29 00:01:05 server mahara-site: * PluginAuthLdap:
Jul 29 00:01:05 server mahara-site: * call_user_
Jul 29 00:01:05 server mahara-site: * call_static_
Jul 29 00:01:05 server mahara-site:
Jul 29 00:01:05 server mahara-site: [WAR] 29 (auth/ldap/
Jul 29 00:01:05 server mahara-site: Call stack (most recent first):
Jul 29 00:01:05 server mahara-site: * log_message(
Jul 29 00:01:05 server mahara-site: * error(2, "ldap_free_result() expects parameter 1 to be resou...", "/var/www/
Jul 29 00:01:05 server mahara-site: * ldap_free_
Jul 29 00:01:05 server mahara-site: * AuthLdap-
Jul 29 00:01:05 server mahara-site: * AuthLdap-
Jul 29 00:01:05 server mahara-site: * PluginAuthLdap:
Jul 29 00:01:05 server mahara-site: * call_user_
Jul 29 00:01:05 server mahara-site: * call_static_
Jul 29 00:01:05 server mahara-site:
Jul 29 00:01:05 server mahara-site: [INF] 29 (auth/ldap/
Jul 29 00:01:05 server mahara-site: [INF] 29 (auth/ldap/
Jul 29 00:01:05 server mahara-site: [INF] 29 (auth/ldap/
Because we've set the sync to suspend users, all LDAP users are then suspended.
Changed in mahara: | |
assignee: | nobody → Ghada El-Zoghbi (ghada-z) |
Changed in mahara: | |
importance: | Undecided → Medium |
status: | New → Confirmed |
milestone: | none → 16.10.0 |
Changed in mahara: | |
milestone: | 16.10.0 → none |
status: | Fix Committed → Fix Released |
Patch for "master" branch: https:/ /reviews. mahara. org/6758