From 079d832dd129c2aa1b8c10c6976bb5040c3ceb85 Mon Sep 17 00:00:00 2001 From: William Luke Date: Fri, 5 Jul 2024 17:16:02 -0500 Subject: [PATCH] Fix the base DN searches --- internal/ldap/search.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/ldap/search.go b/internal/ldap/search.go index 457d6ed..d71ec10 100644 --- a/internal/ldap/search.go +++ b/internal/ldap/search.go @@ -38,6 +38,9 @@ func (s *server) handleBaseDnSearch(w ldap.ResponseWriter, m *ldap.Message) { e.AddAttribute("supportedLDAPVersion", "3") e.AddAttribute("namingContexts", message.AttributeValue(nc)) w.Write(e) + + res := ldap.NewSearchResultDoneResponse(ldap.LDAPResultSuccess) + w.Write(res) } func (s *server) handleSearchEntities(w ldap.ResponseWriter, m *ldap.Message) {