mod_auth_ldap/mod_auth_ldap.lua
changeset 1479 9a0a0cfd3710
parent 1478 099583539e2c
child 1593 3e4d15ae2133
child 1613 5f139770061e
--- a/mod_auth_ldap/mod_auth_ldap.lua	Tue Aug 05 15:17:34 2014 +0200
+++ b/mod_auth_ldap/mod_auth_ldap.lua	Tue Aug 05 15:23:35 2014 +0200
@@ -12,7 +12,7 @@
 local ldap_scope = module:get_option_string("ldap_scope", "onelevel");
 local ldap_filter = module:get_option_string("ldap_filter", "(uid=$user)"):gsub("%%s", "$user", 1);
 local ldap_base = assert(module:get_option_string("ldap_base"), "ldap_base is a required option for ldap");
-local ldap_mode = module:get_option_string("ldap_mode", ldap_rootdn == "" and "bind" or "getpasswd");
+local ldap_mode = module:get_option_string("ldap_mode", "bind");
 local host = ldap_filter_escape(module:get_option_string("realm", module.host));
 
 -- Initiate connection