Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for QuickNormalizeDN (0.1 sec)

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

    			return nil, err
    		}
    		res[userDistName] = set.CreateStringSet(groups...)
    	}
    
    	return res, nil
    }
    
    // QuickNormalizeDN - normalizes the given DN without checking if it is valid or
    // exists in the LDAP directory. Returns input if error
    func (l Config) QuickNormalizeDN(dn string) string {
    	if normDN, err := xldap.NormalizeDN(dn); err == nil {
    		return normDN
    	}
    	return dn
    }
    
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Fri Jul 12 01:04:53 UTC 2024
    - 12.4K bytes
    - Viewed (1)
  2. cmd/iam.go

    			return
    		}
    		if dnResult == nil {
    			// dn not found - still attempt to detach if provided user is a DN.
    			if !isAttach && sys.LDAPConfig.IsLDAPUserDN(r.User) {
    				dn = sys.LDAPConfig.QuickNormalizeDN(r.User)
    			} else {
    				err = errNoSuchUser
    				return
    			}
    		} else {
    			dn = dnResult.NormDN
    		}
    		isGroup = false
    	} else {
    		var underBaseDN bool
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Tue Sep 17 16:45:46 UTC 2024
    - 74.6K bytes
    - Viewed (0)
Back to top