-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow for lowercase token in ldap dn (#563)
Update the validation regex to allow for lowercase LDIF field names in the dn (e.g. CN=foo vs cn=foo). Minio recently changed behaviour by using case sensitive ldap queries. This makes it necessary to specify the distinguished name for user/group policy attachments exactly in the same case as the server.
- Loading branch information
Showing
4 changed files
with
5 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,8 @@ func TestValidateMinioIamGroupName(t *testing.T) { | |
"test.123,user", | ||
"testuser@minio", | ||
"[email protected]", | ||
"CN=ADMINS,OU=Groups,DC=gr-u,DC=it", | ||
"cn=ADMINS,ou=Groups,dc=gr-u,dc=it", | ||
} | ||
|
||
for _, minioName := range minioValidNames { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,7 @@ func TestValidateMinioIamUserName(t *testing.T) { | |
"testuser@minio", | ||
"[email protected]", | ||
"CN=Backup Operators,CN=Builtin,DC=gr-u,DC=it", | ||
"cn=Backup Operators,cn=Builtin,dc=gr-u,dc=it", | ||
"CN=View-Only Organization Management,OU=Microsoft Exchange Security Groups,DC=gr-u,DC=it", | ||
} | ||
|
||
|