Skip to content

Instantly share code, notes, and snippets.

@ralvares
Created June 21, 2021 10:14
Show Gist options
  • Select an option

  • Save ralvares/c526816c404d605b28b821658e66fee7 to your computer and use it in GitHub Desktop.

Select an option

Save ralvares/c526816c404d605b28b821658e66fee7 to your computer and use it in GitHub Desktop.
LdapSyncConfig
kind: LDAPSyncConfig
apiVersion: v1
url: ldap://ldap.local
augmentedActiveDirectory:
groupsQuery:
derefAliases: never
pageSize: 0
groupUIDAttribute: dn
groupNameAttributes: [ cn ]
usersQuery:
baseDN: "OU=Groups,DC=ldap,DC=local"
scope: sub
derefAliases: never
filter: (objectclass=person)
pageSize: 0
userNameAttributes: [ sAMAccountName ]
groupMembershipAttributes: [ "memberOf:1.2.840.113556.1.4.1941:" ]
oc adm groups sync 'CN=Developers,OU=Groups,DC=ldap,DC=local' --sync-config=ldapsync.yaml --confirm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment