Skip to content
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

Block account #169

Merged
merged 6 commits into from
Oct 31, 2024
Merged

Block account #169

merged 6 commits into from
Oct 31, 2024

Conversation

davidcoutadeur
Copy link

Closes #125

@davidcoutadeur davidcoutadeur added the enhancement New feature or request label Oct 16, 2024
@davidcoutadeur davidcoutadeur added this to the 0.6 milestone Oct 16, 2024
@davidcoutadeur davidcoutadeur self-assigned this Oct 16, 2024
@davidcoutadeur
Copy link
Author

To discuss: add also the possibility the add a comment while enabling / disabling account

@@ -38,7 +44,7 @@
}

if ($audit_log_file) {
auditlog($audit_log_file, $dn, $audit_admin, "disableaccount", $result);
auditlog($audit_log_file, $dn, $audit_admin, "disableaccount", $result, $comment);
Copy link
Member

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.

Copy link
Author

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.

Copy link
Member

Choose a reason for hiding this comment

The 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.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was done in #170

@@ -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);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same than previous comment, this need an adaptation of HTML template,

@coudot coudot changed the title 125 block account Block account Oct 30, 2024
@davidcoutadeur
Copy link
Author

This feature seems ready now. merging

@davidcoutadeur davidcoutadeur merged commit 8d136e6 into master Oct 31, 2024
1 check passed
@coudot coudot deleted the 125-block-account branch November 19, 2024 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Possibility to block an account (different that locking)
2 participants