我在 Openshift 中的群組映射方面遇到問題。這是我的 ad-config.yaml:
kind: LDAPSyncConfig
apiVersion: v1
bindDN: "ldapuser"
bindPassword: "ldappwd"
insecure: true
url: "ldap://ldap.mycomp.local:389/ou=MyCompany,dc=mycomp,dc=local?sAMAccountName"
activeDirectory:
usersQuery:
baseDN: "OU=MyCompany,DC=mycomp,DC=local"
scope: sub
derefAliases: never
filter: (objectclass=person)
pageSize: 0
userNameAttributes: [ sAMAccountName ]
groupMembershipAttributes: [ memberOf ]
groupsQuery:
baseDN: OU=Sicherungsgruppen,OU=Gruppen,OOU=MyCompany,DC=mycomp,DC=local
scope: sub
derefAliases: always
timeout: 0
filter: (objectClass=group)
pageSize: 0
groupUIDAttribute: dn
groupNameAttributes: [ cn ]
groupUIDNameMapping:
"CN=uxwsadmin,[...],OU=MyCompany,DC=mycomp,DC=local": admins
"CN=JAVA-Entwickler,[...],OU=MyCompany,DC=mycomp,DC=localc": dev
這兩個組別都在白名單中。我正在同步oc adm groups sync --whitelist=whitelist.txt --sync-config=adconfig.yaml --confirm
當我檢查結果時oc get groups
:
NAME USER
CN=JAVA-Entwickler,[...]OU=MyCompany,DC=mycomp,DC=localc user1, user2, user3
CN=uxwsadmin,[...],OU=MyCompany,DC=mycomp,DC=local user4, user5
為什麼 Groupmapping 失敗?
PS我試了oc版本7.0和oc版本7.1。