Skip to content

Instantly share code, notes, and snippets.

@ashisha2307
Last active October 17, 2024 17:26
Show Gist options
  • Save ashisha2307/4c2c9abcbee13524c1c2fb696076a9bd to your computer and use it in GitHub Desktop.
Save ashisha2307/4c2c9abcbee13524c1c2fb696076a9bd to your computer and use it in GitHub Desktop.
ldap-sync
kind: LDAPSyncConfig
apiVersion: v1
url: ldaps://LDAP_SERVICE_IP
bindDN: service-account
bindPassword: '********'
insecure: false
ca: /ldap-sync/ca.crt
activeDirectory:
groupsQuery:
baseDN: "ou=groups,dc=example,dc=com"
scope: sub
derefAliases: never
pageSize: 0
groupUIDAttribute: dn
groupNameAttributes: [ cn ]
usersQuery:
baseDN: "ou=users,dc=example,dc=com"
scope: sub
derefAliases: never
filter: (objectclass=person)
pageSize: 0
userNameAttributes: [ mail ]
groupMembershipAttributes: [ memberOf ]
=================================================
kind: LDAPSyncConfig
apiVersion: v1
url: ldap://LDAP_SERVICE_IP:389
augmentedActiveDirectory:
groupsQuery:
baseDN: "ou=groups,dc=example,dc=com"
scope: sub
derefAliases: never
pageSize: 0
groupUIDAttribute: dn
groupNameAttributes: [ cn ]
usersQuery:
baseDN: "ou=users,dc=example,dc=com"
scope: sub
derefAliases: never
filter: (objectclass=person)
pageSize: 0
userNameAttributes: [ mail ]
groupMembershipAttributes: [ memberOf ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment