Fix the base DN searches
This commit is contained in:
parent
1802a16d8a
commit
079d832dd1
|
@ -38,6 +38,9 @@ func (s *server) handleBaseDnSearch(w ldap.ResponseWriter, m *ldap.Message) {
|
||||||
e.AddAttribute("supportedLDAPVersion", "3")
|
e.AddAttribute("supportedLDAPVersion", "3")
|
||||||
e.AddAttribute("namingContexts", message.AttributeValue(nc))
|
e.AddAttribute("namingContexts", message.AttributeValue(nc))
|
||||||
w.Write(e)
|
w.Write(e)
|
||||||
|
|
||||||
|
res := ldap.NewSearchResultDoneResponse(ldap.LDAPResultSuccess)
|
||||||
|
w.Write(res)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *server) handleSearchEntities(w ldap.ResponseWriter, m *ldap.Message) {
|
func (s *server) handleSearchEntities(w ldap.ResponseWriter, m *ldap.Message) {
|
||||||
|
|
Loading…
Reference in a new issue