From 02cb7a2a7385e3507e8806ccc493e4fa031e95e1 Mon Sep 17 00:00:00 2001 From: William Luke Date: Fri, 5 Jul 2024 17:19:15 -0500 Subject: [PATCH] Fix the base DN searches --- internal/ldap/search.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/internal/ldap/search.go b/internal/ldap/search.go index d71ec10..8092343 100644 --- a/internal/ldap/search.go +++ b/internal/ldap/search.go @@ -29,14 +29,7 @@ func (s *server) handleSearchDSE(w ldap.ResponseWriter, m *ldap.Message) { } func (s *server) handleBaseDnSearch(w ldap.ResponseWriter, m *ldap.Message) { - nc := strings.Join(s.nc, ",") - e := ldap.NewSearchResultEntry(strings.Join(s.nc, ",")) - e.AddAttribute("vendorName", "NetAuth") - e.AddAttribute("vendorVersion", message.AttributeValue(buildinfo.Version)) - e.AddAttribute("objectClass", "top", "extensibleObject") - e.AddAttribute("supportedLDAPVersion", "3") - e.AddAttribute("namingContexts", message.AttributeValue(nc)) w.Write(e) res := ldap.NewSearchResultDoneResponse(ldap.LDAPResultSuccess)