Try defining baseDN for nextcloud to be happy

This commit is contained in:
signaryk 2024-07-05 16:33:47 -05:00
parent ab4283ceac
commit 50183c2cba

View file

@ -91,6 +91,12 @@ func (s *server) SetDomain(domain string) {
} }
// Register routes that are dependent on the namingConvention // 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, ",") entitySearchDN := "ou=entities," + strings.Join(s.nc, ",")
s.routes.Search(s.handleSearchEntities). s.routes.Search(s.handleSearchEntities).
BaseDn(entitySearchDN). BaseDn(entitySearchDN).