Verified Commit 13ded56b authored by dockx thibault's avatar dockx thibault
Browse files

:sparkles: (CORE) - add logging when user is locked

Logging:log is now working on lock - unlock of user.
Showing with 8 additions and 0 deletions
+8 -0
......@@ -129,8 +129,16 @@ class userManagement extends management
$success = TRUE;
if (($action == 'lock') && !$method->is_locked($dn)) {
$success = $method->lock_account($dn);
// Requiring logging mechanism for audit.
if($success) {
logging::log('security', 'account', $dn, [], 'DN : '.$dn.' is locked.' );
}
} elseif (($action == 'unlock') && $method->is_locked($dn)) {
$success = $method->unlock_account($dn);
// Requiring logging mechanism for audit.
if($success) {
logging::log('security', 'account', $dn, [], 'DN : '.$dn.' is unlocked.' );
}
}
// Check if everything went fine.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment