# HG changeset patch # User Kim Alvefur # Date 1407245015 -7200 # Node ID 9a0a0cfd37105a769886dbdafa52d463fae722bf # Parent 099583539e2c9b623abb591880809d62e8d7ee50 mod_auth_ldap: Change default for ldap_mode to "bind", everyone seems to be using that diff -r 099583539e2c -r 9a0a0cfd3710 mod_auth_ldap/mod_auth_ldap.lua --- 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