Commit cf23f15a by Omar Nahhas Sanchez Committed by GitHub

Adding debug line to search ldap. (#23824)

parent 47c6bd69
......@@ -373,13 +373,19 @@ func (server *Server) getSearchRequest(
filter := fmt.Sprintf("(|%s)", search)
return &ldap.SearchRequest{
searchRequest := &ldap.SearchRequest{
BaseDN: base,
Scope: ldap.ScopeWholeSubtree,
DerefAliases: ldap.NeverDerefAliases,
Attributes: attributes,
Filter: filter,
}
server.log.Debug(
"LDAP SearchRequest", "searchRequest", fmt.Sprintf("%+v\n", searchRequest),
)
return searchRequest
}
// buildGrafanaUser extracts info from UserInfo model to ExternalUserInfo
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment