5.7.195. Bugzilla::Extension::RedHat::bin::sync-internal-groups

5.7.195.1. NAME

ldap-audit.pl

5.7.195.2. SYNOPSIS

ldap-audit.pl <options>

--help|h         Display help text
--man            Display man page
--force          Force LDAP caches to be refreshed.
--keep           Keep the LDAP cache files
--force-sync     Force the groups to be updated regardless of the number of changes required.
--verbose        Output more messages
--host=s         The host to use to manage groups. Mandatory!

5.7.195.3. DESCRIPTION

This command syncs bugzilla group membership to internal groups.

See https://gitlab.corp.redhat.com/it-iam/internal-groups/-/blob/main/docs/api_reference.md

You can check LDAP for th existing groups.

  • Members in a group
ldapsearch -Q -H ldaps://ldap.corp.stage.redhat.com -b "ou=users, dc=redhat, dc=com" -LLL -o ldif-wrap=no "memberOf=cn=bugzilla-redhat,ou=adhoc,ou=managedGroups,dc=redhat,dc=com" uid
  • The group itself
ldapsearch -Q -H ldaps://ldap.corp.stage.redhat.com -b "ou=adhoc,ou=managedGroups,dc=redhat,dc=com" -LLL -o ldif-wrap=no "cn=bugzilla-redhat"

5.7.195.4. EXAMPLES

$ sync-internal-groups.pl --force --host=https://internal-groups.preprod.iam.redhat.com'

5.7.195.5. METHODS

get_mx

Cache and load the MX LDAP records.

get_users

Cache and load the user LDAP records.

get_deleted_users

Cache and load the deleted user LDAP records.


This documentation undoubtedly has bugs; if you find some, please file them here.