From 50183c2cbade918306197940c86c9ef30fb8b96c Mon Sep 17 00:00:00 2001 From: William Luke Date: Fri, 5 Jul 2024 16:33:47 -0500 Subject: [PATCH] Try defining baseDN for nextcloud to be happy --- internal/ldap/ldap.go | 6 ++++++ 1 file changed, 6 insertions(+) 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).