From f93e12e6e92107b4910d8b6ccca43d989d37c162 Mon Sep 17 00:00:00 2001 From: David Coutadeur Date: Wed, 16 Oct 2024 17:27:08 +0200 Subject: [PATCH] fix previous (#44) --- src/Ltb/Directory/OpenLDAP.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Ltb/Directory/OpenLDAP.php b/src/Ltb/Directory/OpenLDAP.php index fcd1e9e..64d3dbe 100644 --- a/src/Ltb/Directory/OpenLDAP.php +++ b/src/Ltb/Directory/OpenLDAP.php @@ -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) {