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

This commit is contained in:
Torkel Ödegaard 2015-08-08 10:00:49 +02:00
parent 0ed4744a33
commit 1f7ac11baa

View File

@ -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)