diff options
author | Andreas Gohr <andi@splitbrain.org> | 2023-08-31 15:04:10 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2023-08-31 15:04:10 +0200 |
commit | 7d34963b3e75ea04c63ec066a6b7a692e123cb53 (patch) | |
tree | dbcc4e2398997a0c61fc0d528a3075c0d5f00d96 /lib/plugins/authldap | |
parent | cb7312c0f5cb7e9e97681814090f1eab6df43b58 (diff) | |
download | dokuwiki-7d34963b3e75ea04c63ec066a6b7a692e123cb53.tar.gz dokuwiki-7d34963b3e75ea04c63ec066a6b7a692e123cb53.zip |
coding style: control flow line breaks
Diffstat (limited to 'lib/plugins/authldap')
-rw-r--r-- | lib/plugins/authldap/auth.php | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/lib/plugins/authldap/auth.php b/lib/plugins/authldap/auth.php index b69ab05a4..f2cd94613 100644 --- a/lib/plugins/authldap/auth.php +++ b/lib/plugins/authldap/auth.php @@ -69,7 +69,8 @@ class auth_plugin_authldap extends AuthPlugin return false; } $this->bound = 2; - } elseif ($this->getConf('binddn') && + } elseif ( + $this->getConf('binddn') && $this->getConf('usertree') && $this->getConf('userfilter') ) { @@ -564,11 +565,12 @@ class auth_plugin_authldap extends AuthPlugin //set protocol version and dependend options if ($this->getConf('version')) { - if (!@ldap_set_option( - $this->con, - LDAP_OPT_PROTOCOL_VERSION, - $this->getConf('version') - ) + if ( + !@ldap_set_option( + $this->con, + LDAP_OPT_PROTOCOL_VERSION, + $this->getConf('version') + ) ) { msg('Setting LDAP Protocol version ' . $this->getConf('version') . ' failed', -1); $this->debug('LDAP version set: ' . hsc(ldap_error($this->con)), 0, __LINE__, __FILE__); @@ -582,11 +584,12 @@ class auth_plugin_authldap extends AuthPlugin } // needs version 3 if ($this->getConf('referrals') > -1) { - if (!@ldap_set_option( - $this->con, - LDAP_OPT_REFERRALS, - $this->getConf('referrals') - ) + if ( + !@ldap_set_option( + $this->con, + LDAP_OPT_REFERRALS, + $this->getConf('referrals') + ) ) { msg('Setting LDAP referrals failed', -1); $this->debug('LDAP referal set: ' . hsc(ldap_error($this->con)), 0, __LINE__, __FILE__); |