Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for SetUserStatus (0.12 sec)

  1. cmd/iam.go

    		pe.Timestamp = UTCNow()
    		return &pe, nil
    	case <-ctx.Done():
    		return nil, ctx.Err()
    	}
    }
    
    // SetUserStatus - sets current user status, supports disabled or enabled.
    func (sys *IAMSys) SetUserStatus(ctx context.Context, accessKey string, status madmin.AccountStatus) (updatedAt time.Time, err error) {
    	if !sys.Initialized() {
    		return updatedAt, errServerNotInitialized
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 29 16:01:48 UTC 2024
    - 74.6K bytes
    - Viewed (0)
  2. cmd/admin-handlers-users.go

    				Group:    group,
    				Status:   madmin.GroupStatus(status),
    				IsRemove: false,
    			},
    		},
    		UpdatedAt: updatedAt,
    	}))
    }
    
    // SetUserStatus - PUT /minio/admin/v3/set-user-status?accessKey=<access_key>&status=[enabled|disabled]
    func (a adminAPIHandlers) SetUserStatus(w http.ResponseWriter, r *http.Request) {
    	ctx := r.Context()
    
    	objectAPI, creds := validateAdminReq(ctx, w, r, policy.EnableUserAdminAction)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 03 23:11:02 UTC 2024
    - 85.1K bytes
    - Viewed (0)
  3. cmd/admin-router.go

    		adminRouter.Methods(http.MethodPut).Path(adminVersion+"/set-user-status").HandlerFunc(adminMiddleware(adminAPI.SetUserStatus)).Queries("accessKey", "{accessKey:.*}").Queries("status", "{status:.*}")
    
    		// Service accounts ops
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Sep 21 11:35:40 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  4. cmd/iam-store.go

    		result.PolicyMappings = store.listPolicyMappings(cache, q.Policies, userPredicate, groupPredicate, decodeFunc)
    	}
    	return result
    }
    
    // SetUserStatus - sets current user status.
    func (store *IAMStoreSys) SetUserStatus(ctx context.Context, accessKey string, status madmin.AccountStatus) (updatedAt time.Time, err error) {
    	if accessKey != "" && status != madmin.AccountEnabled && status != madmin.AccountDisabled {
    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_test.go

    	if err != nil {
    		c.Fatalf("user could not create bucket: %v", err)
    	}
    
    	// 4. Check that user can be disabled and verify it.
    	err = s.adm.SetUserStatus(ctx, accessKey, madmin.AccountDisabled)
    	if err != nil {
    		c.Fatalf("could not set user account to disabled")
    	}
    	usersMap, err = s.adm.ListUsers(ctx)
    	if err != nil {
    		c.Fatalf("error listing: %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)
  6. cmd/site-replication.go

    		}
    		userReq := *change.UserReq
    		if userReq.Status != "" && userReq.SecretKey == "" {
    			// Status is set without secretKey updates means we are
    			// only changing the account status.
    			_, err = globalIAMSys.SetUserStatus(ctx, change.AccessKey, userReq.Status)
    		} else {
    			// We don't allow internal user creation with LDAP enabled for now
    			// (both sites must have LDAP disabled).
    			if globalIAMSys.LDAPConfig.Enabled() {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 12:04:40 UTC 2024
    - 185.1K bytes
    - Viewed (0)
Back to top