Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for addUser (0.11 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
Back to top