Changeset

1479:9a0a0cfd3710

mod_auth_ldap: Change default for ldap_mode to "bind", everyone seems to be using that
author Kim Alvefur <zash@zash.se>
date Tue, 05 Aug 2014 15:23:35 +0200
parents 1478:099583539e2c
children 1480:92b930be261f
files mod_auth_ldap/mod_auth_ldap.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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