5.7.191. Bugzilla::Extension::RedHat::bin::ldap-audit¶
5.7.191.1. NAME¶
ldap-audit.pl
5.7.191.2. SYNOPSIS¶
ldap-audit.pl <options>
--help|h Display help text
--man Display man page
--force Force LDAP caches to be refreshed.
--user Limit report to a specific user. Can be supplied multiple times
--keep Keep the LDAP cache files
--purity Automatically remove partner users from inappropriate groups
5.7.191.3. DESCRIPTION¶
This command audits all open Red Hat user Bugzilla accounts looking for records that do not match the expected states.
5.7.191.4. EXAMPLES¶
$ ldap-audit.pl --force
5.7.191.5. METHODS¶
check_mail¶
Given an email address determine it’s state and category and process accordingly.
proc_unverified¶
Process a current user as unverified.
proc_sa¶
Process a service account.
proc_user¶
Process a current user and audit their groups Vs their LDAP values.
TODO
Post Bugzilla 5 group clean up this needs changing.
get_user¶
Get a Bugzilla::User object for an email address.
remove_groups¶
Remove an account from an array of groups.
ensure_in_groups¶
Check to see if an account is in an array of groups.
proc_ex_user¶
Process an Ex-user account.
If terminate is set it will set disabled text, disable bug mail, remove it from all groups, and remove all product responsibilities.
get_users¶
Cache and load the user LDAP records.