fix: was usign wrong group for setting it active
This commit is contained in:
parent
ba180179b0
commit
83a33e09f7
1 changed files with 4 additions and 1 deletions
|
@ -163,7 +163,10 @@ async fn update_accounts(pool: &Pool<Sqlite>, 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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue