Remove sindominante status to blcked accounts

merge-requests/11/head
meskio 3 years ago
parent d1f8e4fcc9
commit 6ac3bb8619
Signed by: meskio
GPG Key ID: 52B8F5AC97A2DA86
  1. 6
      main.go

@ -81,6 +81,12 @@ func lockUsers(l ldap.Ldap) {
if err != nil {
log.Printf("Error changing locked for user %s: %v", u.Name, err)
}
if u.Role == ldap.Sindominante {
err = l.ChangeRole(u.Name, ldap.Amiga)
if err != nil {
log.Printf("Error changing role for blocked user %s: %v", u.Name, err)
}
}
}
time.Sleep(time.Minute * 61)

Loading…
Cancel
Save