- Sort Score
- Num 10 results
- Language All
Results 1 - 5 of 5 for PolicyDBGet (0.22 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
cmd/ftp-server-driver.go
if errors.Is(err, errNoSuchServiceAccount) { lookupRes, groupDistNames, err := globalIAMSys.LDAPConfig.Bind(username, password) if err != nil { return false, err } ldapPolicies, _ := globalIAMSys.PolicyDBGet(lookupRes.NormDN, groupDistNames...) return len(ldapPolicies) > 0, nil } return subtle.ConstantTimeCompare([]byte(sa.Credentials.SecretKey), []byte(password)) == 1, nil }
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 14.3K bytes - Click Count (0) -
cmd/admin-handlers-idp-ldap.go
opts.claims[ldapUser] = targetUser // DN opts.claims[ldapActualUser] = lookupResult.ActualDN // Check if this user or their groups have a policy applied. ldapPolicies, err := globalIAMSys.PolicyDBGet(targetUser, targetGroups...) if err != nil { writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL) return } if len(ldapPolicies) == 0 {
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 08 02:46:04 GMT 2025 - 19.2K bytes - Click Count (0) -
cmd/sts-handlers.go
claims[tokenRevokeTypeClaim] = tokenRevokeType } // Validate that user.AccessKey's policies can be retrieved - it may not // be in case the user is disabled. if _, err = globalIAMSys.PolicyDBGet(user.AccessKey, user.Groups...); err != nil { writeSTSErrorResponse(ctx, w, ErrSTSInvalidParameterValue, err) return } secret, err := getTokenSigningKey() if err != nil {
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 36.6K bytes - Click Count (0) -
cmd/admin-handlers-users.go
return } var stsAccountPolicy policy.Policy if sessionPolicy != nil { stsAccountPolicy = *sessionPolicy } else { policiesNames, err := globalIAMSys.PolicyDBGet(stsAccount.ParentUser, stsAccount.Groups...) if err != nil { writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL) return } if len(policiesNames) == 0 {Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 90.6K bytes - Click Count (0) -
cmd/signature-v4-utils_test.go
if err != nil { t.Fatalf("unable to attach policy to credential, %s", err) } time.Sleep(4 * time.Second) policies, err := globalIAMSys.PolicyDBGet(ucreds.AccessKey) if err != nil { t.Fatalf("unable to get policy to credential, %s", err) } if len(policies) == 0 { t.Fatal("no policies found") } if policies[0] != "consoleAdmin" {Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Wed Apr 09 14:28:39 GMT 2025 - 14.3K bytes - Click Count (0)