Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for GetValidatedGroupDN (0.15 sec)

  1. internal/config/identity/ldap/ldap.go

    		l.LDAP.GetUserDNSearchBaseDistNames(), l.LDAP.GetUserDNAttributesList())
    }
    
    // GetValidatedGroupDN validates the given group DN. If conn is nil, creates a
    // connection. The returned boolean is true iff the group DN is found under one
    // of the configured LDAP base DNs.
    func (l *Config) GetValidatedGroupDN(conn *ldap.Conn, groupDN string) (*xldap.DNSearchResult, bool, error) {
    	if conn == nil {
    		var err error
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jul 12 01:04:53 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  2. cmd/iam.go

    			if _, ok := cleanQ.Users[user]; !ok {
    				cleanQ.Users[user] = nil
    			}
    		}
    
    		// Validate and normalize groups.
    		for _, group := range q.Groups {
    			lookupRes, underDN, _ := sys.LDAPConfig.GetValidatedGroupDN(nil, group)
    			if lookupRes != nil && underDN {
    				cleanQ.Groups.Add(lookupRes.NormDN)
    			}
    		}
    	} else {
    		for _, user := range q.Users {
    			info, err := sys.store.GetUserInfo(user)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 29 16:01:48 UTC 2024
    - 74.6K bytes
    - Viewed (0)
  3. cmd/admin-handlers-users.go

    		var err error
    		if isGroup {
    			var foundGroupDN *xldap.DNSearchResult
    			var underBaseDN bool
    			if foundGroupDN, underBaseDN, err = globalIAMSys.LDAPConfig.GetValidatedGroupDN(nil, entityName); err != nil {
    				iamLogIf(ctx, err)
    			} else if foundGroupDN == nil || !underBaseDN {
    				err = errNoSuchGroup
    			}
    			entityName = foundGroupDN.NormDN
    		} else {
    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/site-replication.go

    		var err error
    		if isGroup {
    			var foundGroupDN *xldap.DNSearchResult
    			var underBaseDN bool
    			if foundGroupDN, underBaseDN, err = globalIAMSys.LDAPConfig.GetValidatedGroupDN(nil, entityName); err != nil {
    				iamLogIf(ctx, err)
    			} else if foundGroupDN == nil || !underBaseDN {
    				err = errNoSuchGroup
    			}
    			entityName = foundGroupDN.NormDN
    		} else {
    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