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)