diff options
author | andi <andi@splitbrain.org> | 2005-04-04 21:35:47 +0200 |
---|---|---|
committer | andi <andi@splitbrain.org> | 2005-04-04 21:35:47 +0200 |
commit | d9024fb802b075b44fcdad0702f955cd4848efa4 (patch) | |
tree | c18702de33d2f5be1342bec4cb187d20fa33c8e8 /inc | |
parent | ba11bd296a3af0eed0eb356429d047fd4eeb4e4a (diff) | |
download | rpg-d9024fb802b075b44fcdad0702f955cd4848efa4.tar.gz rpg-d9024fb802b075b44fcdad0702f955cd4848efa4.tar.bz2 |
reject empty LDAP password
darcs-hash:20050404193547-9977f-77d14fcf00b404469027690f3a6004a125f044ab.gz
Diffstat (limited to 'inc')
-rw-r--r-- | inc/auth_ldap.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/inc/auth_ldap.php b/inc/auth_ldap.php index 296b4e9c8..dfd54103b 100644 --- a/inc/auth_ldap.php +++ b/inc/auth_ldap.php @@ -69,6 +69,9 @@ function auth_checkPass($user,$pass){ global $conf; $cnf = $conf['auth']['ldap']; + //reject empty password + if(empty($pass)) return false; + //connect to LDAP Server $conn = auth_ldap_connect(); if(!$conn) return false; |