Skip to content

Commit

Permalink
fix previous (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
David Coutadeur committed Oct 16, 2024
1 parent ec8caf9 commit f93e12e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Ltb/Directory/OpenLDAP.php
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ public function enableAccount($ldap, $dn) : bool {

$attrsToDelete = array( 'pwdAccountDisabled' => array() );

$update = \Ltb\PhpLDAP::ldap_mod_del($ldap, $dn, $attrsToDelete);
$update = \Ltb\PhpLDAP::ldap_mod_replace($ldap, $dn, $attrsToDelete);
$errno = \Ltb\PhpLDAP::ldap_errno($ldap);

if ($errno) {
Expand Down

0 comments on commit f93e12e

Please sign in to comment.