diff options
Diffstat (limited to 'inc/auth/ldap.class.php')
-rw-r--r-- | inc/auth/ldap.class.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/inc/auth/ldap.class.php b/inc/auth/ldap.class.php index f59800476..de1c8570b 100644 --- a/inc/auth/ldap.class.php +++ b/inc/auth/ldap.class.php @@ -20,8 +20,13 @@ class auth_ldap extends auth_basic { global $conf; $this->cnf = $conf['auth']['ldap']; if(empty($this->cnf['groupkey'])) $this->cnf['groupkey'] = 'cn'; - } + // try to connect + if(!$this->_openLDAP()) $this->success = false; + + // auth_ldap currently just handles authentication, so no + // capabilities are set + } /** * Check user+password |