user_info will not work in that case.
* Fix a small bug in lib/ldap/defaults.php3. We should not be using $i in a for() loop but a new variable
* Add a comment in admin.conf about ldap server failover
+* Map a specific username to the directory manager if we are using ldap and http authentication
Ver 1.59:
* Small html fixes in user_edit.php3 and password.php3
* Show number of failed logins in the last 7 days in the user admin page
# with a filter of (uid=<username>). Normally, the anonymous (empty DN)
# user can do that.
#ldap_use_http_credentials: yes
+#
+# If we are using http credentials we can map a specific username to the
+# directory manager (which usually does not correspond to a specific username)
+#
+#ldap_directory_manager: cn=Directory Manager
+#ldap_map_to_directory_manager: admin
+
#
# can be one of mysql,pg where:
global $HTTP_SERVER_VARS;
$din = $HTTP_SERVER_VARS["PHP_AUTH_USER"];
$pass = $HTTP_SERVER_VARS["PHP_AUTH_PW"];
+ if ($config[ldap_map_to_directory_manager] != '' &&
+ $din == $config[ldap_map_to_directory_manager] &&
+ $config[ldap_directory_manager] != '')
+ $din = $config[ldap_directory_manager];
}
if ($config[ldap_use_http_credentials] != 'yes' ||
($din == '' && $pass == '')){