internal/ldap: Synchronize path

This commit is contained in:
Michael Aldridge 2020-08-23 00:52:38 -07:00
parent 792f53e2da
commit 5789f11056

View file

@ -20,8 +20,8 @@ func (s *server) entityIDFromDN(dn message.LDAPDN) (string, error) {
return "", errors.New("entity DN must start with uid=")
}
if parts[1] != "cn=entities" {
return "", errors.New("entity DN is underneath cn=entities")
if parts[1] != "ou=entities" {
return "", errors.New("entity DN is underneath ou=entities")
}
for i, p := range parts[2:] {