- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for PolicyDBSet (0.07 sec)
-
cmd/kms-handlers_test.go
if err != nil { t.Fatal(err) } _, err = globalIAMSys.PolicyDBSet(ctx, accessKey, testKMSPolicyName, regUser, false) if err != nil { t.Fatal(err) } } else { err = globalIAMSys.DeletePolicy(ctx, testKMSPolicyName, false) if err != nil { t.Fatal(err) } _, err = globalIAMSys.PolicyDBSet(ctx, accessKey, "", regUser, false) if err != nil { t.Fatal(err) } }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sun Aug 18 06:43:03 UTC 2024 - 22.3K bytes - Viewed (0) -
cmd/iam.go
return sys.store.ListGroups(ctx) case <-ctx.Done(): return nil, ctx.Err() } } // PolicyDBSet - sets a policy for a user or group in the PolicyDB. This does // not validate if the user/group exists - that is the responsibility of the // caller. func (sys *IAMSys) PolicyDBSet(ctx context.Context, name, policy string, userType IAMUserType, isGroup bool) (updatedAt time.Time, err error) { if !sys.Initialized() {
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/signature-v4-utils_test.go
if s3Err != ErrNone { t.Fatalf("Unexpected failure with %v", errorCodes.ToAPIErr(s3Err)) } if owner { t.Fatalf("Expected owner to be 'false', found %t", owner) } _, err = globalIAMSys.PolicyDBSet(ctx, ucreds.AccessKey, "consoleAdmin", regUser, false) if err != nil { t.Fatalf("unable to attach policy to credential, %s", err) } time.Sleep(4 * time.Second)
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Apr 05 21:26:41 UTC 2024 - 14.3K bytes - Viewed (0) -
cmd/admin-handlers-users.go
} entityName = foundUserDN.NormDN } if err != nil { writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL) return } } updatedAt, err := globalIAMSys.PolicyDBSet(ctx, entityName, policyName, userType, isGroup) if err != nil { writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL) return }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Oct 03 23:11:02 UTC 2024 - 85.1K bytes - Viewed (0) -
cmd/iam-store.go
} // PolicyDBSet - update the policy mapping for the given user or group in // storage and in cache. We do not check for the existence of the user here // since users can be virtual, such as for: // - LDAP users // - CommonName for STS accounts generated by AssumeRoleWithCertificate
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/site-replication.go
} else if foundUserDN == nil { err = errNoSuchUser } entityName = foundUserDN.NormDN } if err != nil { return wrapSRErr(err) } } _, err := globalIAMSys.PolicyDBSet(ctx, entityName, mapping.Policy, userType, isGroup) if err != nil { return wrapSRErr(err) } return nil } // PeerSTSAccHandler - replicates STS credential locally.
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Aug 15 12:04:40 UTC 2024 - 185.1K bytes - Viewed (0)