Search Options

Results per page
Sort
Preferred Languages
Advance

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

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

    	pdn, _ := ldap.ParseDN(searchRes.NormDN)
    
    	// Check that the DN is under a configured base DN in the LDAP
    	// directory.
    	for _, baseDN := range baseDNList {
    		if baseDN.Parsed.AncestorOf(pdn) {
    			return searchRes, true, nil
    		}
    	}
    
    	// Not under any configured base DN so return false.
    	return searchRes, false, nil
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jul 12 01:04:53 UTC 2024
    - 12.4K bytes
    - Viewed (0)
Back to top