Commit 1f7ac11b by Torkel Ödegaard

feat(ldap): added support for compound search filter expressions, closes #2472

parent 0ed4744a
......@@ -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)
......
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