Skip to content
Snippets Groups Projects
Commit 3874c532 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

update verifyPassword

parent 8d4efdd3
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,7 @@
* - ldap auth
* - CRUD actions on ldap leafs
*
* last change: 2022-02-17
* @author axel.hahn@iml.unibe.ch
*/
class imlldap {
......@@ -729,12 +730,9 @@ class imlldap {
public function verifyPassword($sUser, $sPW){
$sDn=$this->getUserDn($sUser);
if ($sDn){
if (!$this->bind($this->_aLdap['DnLdapUser'], $this->_aLdap['PwLdapUser'])){
return false;
}
return $this->bind($sDn, $sPW);
}
$this->_w(__FUNCTION__ . ' dn not found (user does not exist in ldap) ' . $sUser);
return false;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment