Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for AttachPolicy (0.07 sec)

  1. cmd/admin-handlers-users_test.go

    	v, ok := usersMap[accessKey]
    	if !ok {
    		c.Fatalf("user not listed: %s", accessKey)
    	}
    	c.Assert(v.Status, madmin.AccountEnabled)
    
    	// 3. Associate policy and check that user can access
    	_, err = s.adm.AttachPolicy(ctx, madmin.PolicyAssociationReq{
    		Policies: []string{"readwrite"},
    		User:     accessKey,
    	})
    	if err != nil {
    		c.Fatalf("unable to attach policy: %v", err)
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 22 00:33:43 UTC 2024
    - 47.3K bytes
    - Viewed (0)
  2. cmd/sftp-server_test.go

    	if err != nil {
    		c.Fatalf("Unable to set user: %v", err)
    	}
    
    	userReq := madmin.PolicyAssociationReq{
    		Policies: []string{"readwrite"},
    		User:     accessKey,
    	}
    	if _, err := s.adm.AttachPolicy(ctx, userReq); err != nil {
    		c.Fatalf("Unable to attach policy: %v", err)
    	}
    
    	newSSHCon := newSSHConnMock(accessKey + "=svc")
    	_, err = sshPasswordAuth(newSSHCon, []byte("invalid"))
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jun 28 09:06:25 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  3. cmd/admin-handlers-users-race_test.go

    		if err != nil {
    			c.Fatalf("Unable to set user: %v", err)
    		}
    
    		userReq := madmin.PolicyAssociationReq{
    			Policies: []string{policy},
    			User:     accessKey,
    		}
    		if _, err := s.adm.AttachPolicy(ctx, userReq); err != nil {
    			c.Fatalf("Unable to attach policy: %v", err)
    		}
    
    		accessKeys[i] = accessKey
    		secretKeys[i] = secretKey
    	}
    
    	g := errgroup.Group{}
    	for i := 0; i < userCount; i++ {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jun 28 09:06:25 UTC 2024
    - 4K bytes
    - Viewed (0)
  4. cmd/sts-handlers_test.go

    	if err != nil {
    		c.Fatalf("policy add error: %v", err)
    	}
    
    	if err = s.adm.AddUser(ctx, "dillon", "dillon-123"); err != nil {
    		c.Fatalf("policy add error: %v", err)
    	}
    
    	_, err = s.adm.AttachPolicy(ctx, madmin.PolicyAssociationReq{
    		Policies: []string{policy},
    		User:     "dillon",
    	})
    	if err != nil {
    		c.Fatalf("Unable to attach policy: %v", err)
    	}
    
    	assumeRole := cr.STSAssumeRole{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 10 23:40:37 UTC 2024
    - 97.1K bytes
    - Viewed (0)
Back to top