From 83a33e09f7eb630bd74539bc34ed288ebb32793b Mon Sep 17 00:00:00 2001 From: Brendan Golden Date: Sat, 29 Jul 2023 19:02:56 +0100 Subject: [PATCH] fix: was usign wrong group for setting it active --- src/lib.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index c21d396..066190f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -163,7 +163,10 @@ async fn update_accounts(pool: &Pool, config: &Config) { if tmp.attrs.contains_key("skDiscord") && !tmp.attrs["skDiscord"].is_empty() { tmp_account.discord = Option::from(tmp.attrs["skDiscord"][0].clone()); } - if tmp.attrs.contains_key("skMemberOf") && !tmp.attrs["skMemberOf"].is_empty() && tmp.attrs["skMemberOf"].contains(&String::from("cn=skynet-users,ou=groups,dc=skynet,dc=ie")) { + if tmp.attrs.contains_key("skMemberOf") + && !tmp.attrs["skMemberOf"].is_empty() + && tmp.attrs["skMemberOf"].contains(&String::from("cn=skynet-users-linux,ou=groups,dc=skynet,dc=ie")) + { tmp_account.enabled = true; }