Fix the base DN searches

This commit is contained in:
signaryk 2024-07-05 17:28:31 -05:00
parent f91f8874dc
commit c92d3125a3

View file

@ -17,7 +17,7 @@ func (s *server) handleSearchDSE(w ldap.ResponseWriter, m *ldap.Message) {
nc := strings.Join(s.nc, ",") nc := strings.Join(s.nc, ",")
r := m.GetSearchRequest() r := m.GetSearchRequest()
e := ldap.NewSearchResultEntry("") e := ldap.NewSearchResultEntry(nc)
if len(r.Attributes()) == 0 { if len(r.Attributes()) == 0 {
e.AddAttribute("vendorName", "NetAuth") e.AddAttribute("vendorName", "NetAuth")
e.AddAttribute("vendorVersion", message.AttributeValue(buildinfo.Version)) e.AddAttribute("vendorVersion", message.AttributeValue(buildinfo.Version))