changeset 3327:3af2da030397

mod_auth_ldap: Add compat with the previously mistaken documentation (thanks pep.)
author Kim Alvefur <zash@zash.se>
date Sun, 23 Sep 2018 14:20:06 +0200
parents 5e0193a27c53
children 7d39ffd058d5
files mod_auth_ldap/mod_auth_ldap.lua
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_auth_ldap/mod_auth_ldap.lua	Sun Sep 23 14:19:47 2018 +0200
+++ b/mod_auth_ldap/mod_auth_ldap.lua	Sun Sep 23 14:20:06 2018 +0200
@@ -17,7 +17,8 @@
 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", "bind");
-local ldap_admins = module:get_option_string("ldap_admin_filter");
+local ldap_admins = module:get_option_string("ldap_admin_filter",
+	module:get_option_string("ldap_admins")); -- COMPAT with mistake in documentation
 local host = ldap_filter_escape(module:get_option_string("realm", module.host));
 
 -- Initiate connection