mirror of
https://github.com/minio/minio.git
synced 2026-11-25 23:23:49 +00:00
cleanup ignored static analysis (#16767)
This commit is contained in:
1 parent
3423028713
commit
714283fae2
48 files changed
+182
-261
No files matched your search
@@ -1327,8 +1327,7 @@ func (c *SiteReplicationSys) PeerSTSAccHandler(ctx context.Context, stsCred *mad
|
||||
|
||||
// Extract the username and lookup DN and groups in LDAP.
|
||||
ldapUser, isLDAPSTS := claims.Lookup(ldapUserN)
|
||||
switch {
|
||||
case isLDAPSTS:
|
||||
if isLDAPSTS {
|
||||
// Need to lookup the groups from LDAP.
|
||||
_, ldapGroups, err := globalIAMSys.LDAPConfig.LookupUserDN(ldapUser)
|
||||
if err != nil {
|
||||
|
||||
Reference in new issue
Block a user