Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for addUser (0.04 sec)

  1. cmd/admin-handlers-users_test.go

    }
    
    func (c *check) mustCreateIAMUser(ctx context.Context, admClnt *madmin.AdminClient) madmin.Credentials {
    	c.Helper()
    	randUser := mustGetUUID()
    	randPass := mustGetUUID()
    	err := admClnt.AddUser(ctx, randUser, randPass)
    	if err != nil {
    		c.Fatalf("should be able to create a user: %v", err)
    	}
    	return madmin.Credentials{
    		AccessKey: randUser,
    		SecretKey: randPass,
    	}
    }
    
    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/admin-router.go

    		adminRouter.Methods(http.MethodPut).Path(adminVersion+"/add-user").HandlerFunc(adminMiddleware(adminAPI.AddUser)).Queries("accessKey", "{accessKey:.*}")
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Sep 21 11:35:40 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  3. cmd/sts-handlers_test.go

    	if !gotBuckets.Equals(shouldHaveBuckets) {
    		c.Fatalf("root user should have access to all buckets")
    	}
    
    	// This must fail.
    	if err := userAdmClient.AddUser(ctx, globalActiveCred.AccessKey, globalActiveCred.SecretKey); err == nil {
    		c.Fatal("AddUser() for root credential must fail via root STS creds")
    	}
    }
    
    // SetUpLDAP - expects to setup an LDAP test server using the test LDAP
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 10 23:40:37 UTC 2024
    - 97.1K bytes
    - Viewed (0)
  4. cmd/iam-store.go

    				v.SecretKey = ""
    				v.SessionToken = ""
    				stsAccounts = append(stsAccounts, v)
    			}
    		}
    	}
    
    	return stsAccounts, nil
    }
    
    // AddUser - adds/updates long term user account to storage.
    func (store *IAMStoreSys) AddUser(ctx context.Context, accessKey string, ureq madmin.AddOrUpdateUserReq) (updatedAt time.Time, err error) {
    	cache := store.lock()
    	defer store.unlock()
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Oct 14 16:35:37 UTC 2024
    - 83.2K bytes
    - Viewed (0)
  5. cmd/admin-handlers-users.go

    			IsDeleteReq: false,
    			UserReq: &madmin.AddOrUpdateUserReq{
    				Status: madmin.AccountStatus(status),
    			},
    		},
    		UpdatedAt: updatedAt,
    	}))
    }
    
    // AddUser - PUT /minio/admin/v3/add-user?accessKey=<access_key>
    func (a adminAPIHandlers) AddUser(w http.ResponseWriter, r *http.Request) {
    	ctx := r.Context()
    
    	vars := mux.Vars(r)
    	accessKey := vars["accessKey"]
    
    	// Get current object layer instance.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 03 23:11:02 UTC 2024
    - 85.1K bytes
    - Viewed (0)
  6. cmd/iam.go

    		return updatedAt, auth.ErrContainsReservedChars
    	}
    
    	if !auth.IsSecretKeyValid(ureq.SecretKey) {
    		return updatedAt, auth.ErrInvalidSecretKeyLength
    	}
    
    	updatedAt, err = sys.store.AddUser(ctx, accessKey, ureq)
    	if err != nil {
    		return updatedAt, err
    	}
    
    	sys.notifyForUser(ctx, accessKey, false)
    	return updatedAt, nil
    }
    
    // SetUserSecretKey - sets user secret key
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 29 16:01:48 UTC 2024
    - 74.6K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/SetsTest.java

        BiConsumer<A, SomeEnum> adder = collector.accumulator();
        adder.accept(accumulator, SomeEnum.A);
        adder.accept(accumulator, SomeEnum.B);
        ImmutableSet<SomeEnum> set = collector.finisher().apply(accumulator);
        assertThat(set).containsExactly(SomeEnum.A, SomeEnum.B);
    
        // Subsequent manual manipulation of the accumulator must not affect the state of the built set
        adder.accept(accumulator, SomeEnum.C);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 48.6K bytes
    - Viewed (0)
Back to top