Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for errNoSuchUser (0.5 sec)

  1. cmd/iam-object-store.go

    	if err != nil {
    		if err == errConfigNotFound {
    			return u, errNoSuchUser
    		}
    		return u, err
    	}
    
    	if u.Credentials.IsExpired() {
    		// Delete expired identity - ignoring errors here.
    		iamOS.deleteIAMConfig(ctx, getUserIdentityPath(user, userType))
    		iamOS.deleteIAMConfig(ctx, getMappedPolicyPath(user, userType, false))
    		return u, errNoSuchUser
    	}
    
    	if u.Credentials.AccessKey == "" {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 10 23:40:37 UTC 2024
    - 26.6K bytes
    - Viewed (0)
  2. cmd/iam-store.go

    			if !ok {
    				return u, errNoSuchUser
    			}
    		}
    
    		return madmin.UserInfo{
    			PolicyName: mappedPolicy.Policies,
    			MemberOf:   groups,
    			UpdatedAt:  mappedPolicy.UpdatedAt,
    		}, nil
    	}
    
    	ui, found := cache.iamUsersMap[name]
    	if !found {
    		return u, errNoSuchUser
    	}
    	cred := ui.Credentials
    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/iam.go

    func (sys *IAMSys) IsTempUser(name string) (bool, string, error) {
    	if !sys.Initialized() {
    		return false, "", errServerNotInitialized
    	}
    
    	u, found := sys.store.GetUser(name)
    	if !found {
    		return false, "", errNoSuchUser
    	}
    	cred := u.Credentials
    	if cred.IsTemp() {
    		return true, cred.ParentUser, nil
    	}
    
    	return false, "", nil
    }
    
    // IsServiceAccount - returns if given key is a service account
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 29 16:01:48 UTC 2024
    - 74.6K bytes
    - Viewed (0)
  4. cmd/admin-handlers-users.go

    	}
    
    	// Reject if the group add and remove are temporary credentials, or root credential.
    	for _, member := range updReq.Members {
    		ok, _, err := globalIAMSys.IsTempUser(member)
    		if err != nil && err != errNoSuchUser {
    			writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
    			return
    		}
    		if ok {
    			writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, errIAMActionNotAllowed), 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)
  5. cmd/admin-handlers-idp-ldap.go

    	if err != nil {
    		writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
    		return
    	}
    	if dnResult == nil {
    		writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, errNoSuchUser), r.URL)
    		return
    	}
    	targetAccount := dnResult.NormDN
    
    	listType := r.Form.Get("listType")
    	if listType != "sts-only" && listType != "svcacc-only" && listType != "" {
    		// default to both
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Sep 21 11:35:40 UTC 2024
    - 19.1K bytes
    - Viewed (0)
  6. cmd/api-errors.go

    	// Unwrap the error first
    	err = unwrapAll(err)
    
    	switch err {
    	case errInvalidArgument:
    		apiErr = ErrAdminInvalidArgument
    	case errNoSuchPolicy:
    		apiErr = ErrAdminNoSuchPolicy
    	case errNoSuchUser:
    		apiErr = ErrAdminNoSuchUser
    	case errNoSuchUserLDAPWarn:
    		apiErr = ErrAdminNoSuchUserLDAPWarn
    	case errNoSuchServiceAccount:
    		apiErr = ErrAdminServiceAccountNotFound
    	case errNoSuchGroup:
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 01 22:13:18 UTC 2024
    - 92.1K bytes
    - Viewed (0)
Back to top