-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
125 block account #169
base: master
Are you sure you want to change the base?
125 block account #169
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Seems some cleaning has to be done, as I forgot to remove OpenLDAP specific code. With the merge of AD support branch, we should have no more any reference to an OpenLDAP specific attribute. Maybe this should also be part of another PR. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This was done in #170 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,13 +6,19 @@ | |
$result = ""; | ||
$dn = ""; | ||
$password = ""; | ||
$comment = ""; | ||
|
||
if (isset($_POST["dn"]) and $_POST["dn"]) { | ||
$dn = $_POST["dn"]; | ||
} else { | ||
$result = "dnrequired"; | ||
} | ||
|
||
if (isset($_POST["comment"]) and $_POST["comment"]) { | ||
$comment = $_POST["comment"]; | ||
} | ||
|
||
|
||
if (!$use_enableaccount) { | ||
$result = "actionforbidden"; | ||
} | ||
|
@@ -38,7 +44,7 @@ | |
} | ||
|
||
if ($audit_log_file) { | ||
auditlog($audit_log_file, $dn, $audit_admin, "enableaccount", $result); | ||
auditlog($audit_log_file, $dn, $audit_admin, "enableaccount", $result, $comment); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same than previous comment, this need an adaptation of HTML template, |
||
} | ||
|
||
header('Location: index.php?page=display&dn='.$dn.'&enableaccountresult='.$result); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment modal is only defined for now in lock/unlock panel in the HTML template.
We may add comment for all action, but this should maybe done in a separate PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe I'll do another PR for the comment feature...
Anyway, the last argument of the function auditlog is needed, else Service-Desk crashes.