From 5789f11056aa5c04cf0f98a72e259e7e325fa133 Mon Sep 17 00:00:00 2001 From: Michael Aldridge Date: Sun, 23 Aug 2020 00:52:38 -0700 Subject: [PATCH] internal/ldap: Synchronize path --- internal/ldap/util.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/ldap/util.go b/internal/ldap/util.go index e8e5501..1f428e0 100644 --- a/internal/ldap/util.go +++ b/internal/ldap/util.go @@ -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:] {