Commit 9a1cbcb1 authored by tec's avatar tec

Merge branch 'master' into 'master'

Master

See merge request !12
parents 53c4f463 21f3bd95
Pipeline #220 failed with stages
in 6 seconds
/target/
Cargo.lock
**/*.rs.bk
src/discord_token
ucc-bot.log
This diff is collapsed.
......@@ -23,7 +23,7 @@ pub fn ldap_search(username: &str) -> Option<LDAPUser> {
.search(
"cn=Users,dc=ad,dc=ucc,dc=gu,dc=uwa,dc=edu,dc=au",
Scope::Subtree,
&format!("(cn={})", username),
&format!("(cn={})", ldap3::ldap_escape(username)),
vec!["when_created", "displayName", "name"],
)
.expect("LDAP error")
......
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