fix rebase
This commit is contained in:
parent
08c4bf2e36
commit
0ed876c010
|
@ -38,7 +38,7 @@ TODO - Andrew
|
|||
#### Dependencies
|
||||
Next, install and activate a virtualenv:
|
||||
```sh
|
||||
sudo apt install libkrb5-dev python3-dev
|
||||
sudo apt install libkrb5-dev libsasl2-dev python3-dev
|
||||
python3 -m venv venv
|
||||
. venv/bin/activate
|
||||
pip install -r requirements.txt
|
||||
|
|
|
@ -274,4 +274,10 @@ class LDAPService:
|
|||
)
|
||||
]
|
||||
if dry_run:
|
||||
return user
|
||||
return users_to_change
|
||||
|
||||
for uid, old_program, new_program in users_to_change:
|
||||
changes = {'program': [(ldap3.MODIFY_REPLACE, [new_program])]}
|
||||
conn.modify(self.uid_to_dn(uid), changes)
|
||||
|
||||
return users_to_change
|
||||
|
|
Loading…
Reference in New Issue