mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
fix: ldap: avoid unnecessary import errors (#19547)
Follow up for #19528 If there are multiple existing DN mappings for the same normalized DN, if they all have the same policy mapping value, we pick one of them of them instead of returning an import error.
This commit is contained in:
committed by
GitHub
parent
2d3898e0d5
commit
98f7821eb3
@@ -829,11 +829,17 @@ func TestIAMImportAssetWithLDAP(t *testing.T) {
|
||||
}
|
||||
`,
|
||||
userPolicyMappingsFile: `{}`,
|
||||
// Contains duplicate mapping with same policy, we should not error out.
|
||||
groupPolicyMappingsFile: `{
|
||||
"cn=project.c,ou=groups,ou=swengg,DC=min,dc=io": {
|
||||
"version": 0,
|
||||
"policy": "consoleAdmin",
|
||||
"updatedAt": "2024-04-17T23:54:28.442998301Z"
|
||||
},
|
||||
"cn=project.c,ou=groups,OU=swengg,DC=min,DC=io": {
|
||||
"version": 0,
|
||||
"policy": "consoleAdmin",
|
||||
"updatedAt": "2024-04-17T20:54:28.442998301Z"
|
||||
}
|
||||
}
|
||||
`,
|
||||
|
||||
Reference in New Issue
Block a user