Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for AncestorOf (0.18 sec)

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

    	pdn, _ := ldap.ParseDN(validatedDN)
    
    	// Check that the DN is under a configured base DN in the LDAP
    	// directory.
    	for _, baseDN := range baseDNList {
    		if baseDN.Parsed.AncestorOf(pdn) {
    			return validatedDN, true, nil
    		}
    	}
    
    	// Not under any configured base DN so return false.
    	return validatedDN, false, nil
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 25 15:50:16 GMT 2024
    - 9.9K bytes
    - Viewed (0)
Back to top