Hi.
I would like to sync groups of users from ldap to openshift. I tried openshift_adm_groups_sync module which creates empty groups (without users). Does anyone use this modul, because I cant find the issue? I use the same group-sync.yaml file for years and it works fine. But with openshift_adm_groups_sync users from ldap groups are not synced. Only empty groups are created so the issue is not with the ldap access.
kind: SyncIdentityProvider
apiVersion: config.openshift.io/v1
metadata:
name: group-sync
spec:
identityProvider:
name: LDAP
mappingMethod: add
type: LDAP
ldap:
url: "ldap://your-ldap-server:389" # Replace with your LDAP server
bindDN: "cn=admin,dc=example,dc=com" # Replace with your Bind DN
bindPassword:
name: ldap-bind-password # Ensure this secret exists in the same namespace
insecure: true # Set to false if using LDAPS
attributes:
id: "uid" # Unique identifier for users
preferredUsername: "uid"
name: "cn"
email: "mail"
groupUID: "cn" # Unique identifier for groups
groupName: "cn"
groupMembership:
- "memberUid" # Replace with your LDAP's group membership attribute
mode: EnsureExists