Commit 21f3bd95 authored by grahame's avatar grahame
Browse files

escape username when building LDAP query

parent 36c53318
Pipeline #219 failed with stages
in 2 seconds
......@@ -23,7 +23,7 @@ pub fn ldap_search(username: &str) -> Option<LDAPUser> {
&format!("(cn={})", username),
&format!("(cn={})", ldap3::ldap_escape(username)),
vec!["when_created", "displayName", "name"],
.expect("LDAP error")
Supports Markdown
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