diff options
author | Andreas Gohr <gohr@cosmocode.de> | 2015-02-09 09:40:24 +0100 |
---|---|---|
committer | Andreas Gohr <gohr@cosmocode.de> | 2015-02-09 09:40:24 +0100 |
commit | d75d76b237162cf89dcc8f56703ec0607ed27fdb (patch) | |
tree | 26a780b2e33959bea0d5b7bea87a7f1c3074e558 /lib/plugins/authldap/auth.php | |
parent | 4c32d8dc4120e5a2667564b4108b3708986ea47e (diff) | |
download | rpg-d75d76b237162cf89dcc8f56703ec0607ed27fdb.tar.gz rpg-d75d76b237162cf89dcc8f56703ec0607ed27fdb.tar.bz2 |
fix referral settings in AuthLDAP. closes #1023
Diffstat (limited to 'lib/plugins/authldap/auth.php')
-rw-r--r-- | lib/plugins/authldap/auth.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/plugins/authldap/auth.php b/lib/plugins/authldap/auth.php index fd4729331..50735882f 100644 --- a/lib/plugins/authldap/auth.php +++ b/lib/plugins/authldap/auth.php @@ -516,13 +516,13 @@ class auth_plugin_authldap extends DokuWiki_Auth_Plugin { } } // needs version 3 - if($this->getConf('referrals')) { + if($this->getConf('referrals') > -1) { if(!@ldap_set_option( $this->con, LDAP_OPT_REFERRALS, $this->getConf('referrals') ) ) { - msg('Setting LDAP referrals to off failed', -1); + msg('Setting LDAP referrals failed', -1); $this->_debug('LDAP referal set: '.htmlspecialchars(ldap_error($this->con)), 0, __LINE__, __FILE__); } } |