Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for GetUsersSysType (0.59 sec)

  1. cmd/iam-store.go

    func (store *IAMStoreSys) listGroups(ctx context.Context) (res []string, err error) {
    	cache := store.rlock()
    	defer store.runlock()
    
    	if store.getUsersSysType() == MinIOUsersSysType {
    		for k := range cache.iamGroupsMap {
    			res = append(res, k)
    		}
    	}
    
    	if store.getUsersSysType() == LDAPUsersSysType {
    		cache.iamGroupPolicyMap.Range(func(k string, _ MappedPolicy) bool {
    			res = append(res, k)
    			return true
    		})
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 86.7K bytes
    - Viewed (0)
  2. cmd/user-provider-utils.go

    	case madmin.BuiltinProvider:
    		if validate {
    			if _, ok := globalIAMSys.GetUser(ctx, user); !ok {
    				return "", errNoSuchUser
    			}
    		}
    		return user, nil
    	case madmin.LDAPProvider:
    		if globalIAMSys.GetUsersSysType() != LDAPUsersSysType {
    			return "", errIAMActionNotAllowed
    		}
    		res, err := globalIAMSys.LDAPConfig.GetValidatedDNForUsername(user)
    		if res == nil {
    			err = errNoSuchUser
    		}
    		if err != nil {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  3. cmd/iam-etcd-store.go

    	ies.RUnlock()
    }
    
    func (ies *IAMEtcdStore) lock() *iamCache {
    	ies.Lock()
    	return ies.iamCache
    }
    
    func (ies *IAMEtcdStore) unlock() {
    	ies.Unlock()
    }
    
    func (ies *IAMEtcdStore) getUsersSysType() UsersSysType {
    	return ies.usersSysType
    }
    
    func (ies *IAMEtcdStore) saveIAMConfig(ctx context.Context, item any, itemPath string, opts ...options) error {
    	data, err := json.Marshal(item)
    	if err != nil {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 13.9K bytes
    - Viewed (0)
  4. cmd/admin-handlers-users.go

    	requestorIsDerivedCredential := false
    	if cred.IsServiceAccount() || cred.IsTemp() {
    		requestorParentUser = cred.ParentUser
    		requestorIsDerivedCredential = true
    	}
    
    	if globalIAMSys.GetUsersSysType() == MinIOUsersSysType && targetUser != cred.AccessKey {
    		// For internal IDP, ensure that the targetUser's parent account exists.
    		// It could be a regular user account or the root account.
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 90.6K bytes
    - Viewed (0)
  5. cmd/iam-object-store.go

    }
    
    func (iamOS *IAMObjectStore) lock() *iamCache {
    	iamOS.Lock()
    	return iamOS.iamCache
    }
    
    func (iamOS *IAMObjectStore) unlock() {
    	iamOS.Unlock()
    }
    
    func (iamOS *IAMObjectStore) getUsersSysType() UsersSysType {
    	return iamOS.usersSysType
    }
    
    func (iamOS *IAMObjectStore) saveIAMConfig(ctx context.Context, item any, objPath string, opts ...options) error {
    	json := jsoniter.ConfigCompatibleWithStandardLibrary
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 26.6K bytes
    - Viewed (0)
  6. cmd/iam.go

    }
    
    // SetUsersSysType - sets the users system type, regular or LDAP.
    func (sys *IAMSys) SetUsersSysType(t UsersSysType) {
    	sys.usersSysType = t
    }
    
    // GetUsersSysType - returns the users system type for this IAM
    func (sys *IAMSys) GetUsersSysType() UsersSysType {
    	return sys.usersSysType
    }
    
    // NewIAMSys - creates new config system object.
    func NewIAMSys() *IAMSys {
    	return &IAMSys{
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 75.3K bytes
    - Viewed (0)
  7. cmd/site-replication.go

    	// use the normalized form of the entityName (which will be an LDAP DN).
    	userType := IAMUserType(mapping.UserType)
    	isGroup := mapping.IsGroup
    	entityName := mapping.UserOrGroup
    
    	if globalIAMSys.GetUsersSysType() == LDAPUsersSysType && userType == stsUser {
    		// Validate that the user or group exists in LDAP and use the normalized
    		// form of the entityName (which will be an LDAP DN).
    		var err error
    		if isGroup {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 184.7K bytes
    - Viewed (0)
Back to top