- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for policyDBGet (0.08 sec)
-
cmd/iam-store.go
return nil } // PolicyDBGet - fetches policies associated with the given user or group, and // additional groups if provided. func (store *IAMStoreSys) PolicyDBGet(name string, groups ...string) ([]string, error) { if name == "" { return nil, errInvalidArgument } cache := store.rlock() defer store.runlock() policies, _, err := cache.policyDBGet(store, name, false, false) if err != nil {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Oct 14 16:35:37 UTC 2024 - 83.2K bytes - Viewed (0) -
cmd/iam.go
})) return } // PolicyDBGet - gets policy set on a user or group. If a list of groups is // given, policies associated with them are included as well. func (sys *IAMSys) PolicyDBGet(name string, groups ...string) ([]string, error) { if !sys.Initialized() { return nil, errServerNotInitialized } return sys.store.PolicyDBGet(name, groups...) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Oct 29 16:01:48 UTC 2024 - 74.6K bytes - Viewed (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 {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sat Sep 21 11:35:40 UTC 2024 - 19.1K bytes - Viewed (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 {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Oct 03 23:11:02 UTC 2024 - 85.1K bytes - Viewed (0)