diff --git a/internal/ldap/ldap.go b/internal/ldap/ldap.go index a286fc2..b053982 100644 --- a/internal/ldap/ldap.go +++ b/internal/ldap/ldap.go @@ -91,6 +91,12 @@ func (s *server) SetDomain(domain string) { } // Register routes that are dependent on the namingConvention + s.routes.Search(s.handleSearchDSE). + BaseDn(strings.Join(s.nc, ",")). + Scope(ldap.SearchRequestScopeBaseObject). + Filter("(objectclass=*)"). + Label("Search - ROOT DSE") + entitySearchDN := "ou=entities," + strings.Join(s.nc, ",") s.routes.Search(s.handleSearchEntities). BaseDn(entitySearchDN).