mirror of
https://github.com/grafana/grafana.git
synced 2025-01-09 23:53:25 -06:00
feat(ldap): added support for compound search filter expressions, closes #2472
This commit is contained in:
parent
0ed4744a33
commit
1f7ac11baa
@ -243,7 +243,7 @@ func (a *ldapAuther) searchForUser(username string) (*ldapUserInfo, error) {
|
||||
a.server.Attr.Name,
|
||||
a.server.Attr.MemberOf,
|
||||
},
|
||||
Filter: fmt.Sprintf(a.server.SearchFilter, username),
|
||||
Filter: strings.Replace(a.server.SearchFilter, "%s", username, -1),
|
||||
}
|
||||
|
||||
searchResult, err = a.conn.Search(&searchReq)
|
||||
|
Loading…
Reference in New Issue
Block a user