ldap-users-from-github-owners-files

command
v0.0.0-...-c780de0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

README

LDAP users from GitHub owners

A small cli that extracts the ldap usernames from a directory hirarchy containing Owners files with GitHub usernames.

Requires a pre-existing file from an ldap query:

ldapsearch -LLL -x -h ldap.corp.redhat.com -b ou=users,dc=redhat,dc=com '(rhatSocialURL=GitHub*)' rhatSocialURL uid 2>&1|tee /tmp/out

Sample usage:

go run -race ./cmd/ldap-users-from-github-owners-files  -ldap-file /tmp/out --repo-base-dir ../release -repo-sub-dir core-services/secret

or generating the mapping files only:

go run -race ./cmd/ldap-users-from-github-owners-files  -ldap-file /tmp/out -mapping-file /tmp/mapping.yaml

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL