Add special handling for LDAP managers
This commit is contained in:
parent
ce4580f4cc
commit
53cdff696d
6
moduser
6
moduser
|
@ -6,7 +6,11 @@ import os
|
|||
# Get user details
|
||||
username = input('Enter username: ')
|
||||
|
||||
if username == 'Manager':
|
||||
bind_user = 'cn=Manager,dc=exozy,dc=me'
|
||||
else:
|
||||
bind_user = 'uid=' + username + ',ou=People,dc=exozy,dc=me'
|
||||
|
||||
# Modify user
|
||||
os.system('EDITOR=nano ldapvi --user uid=' + username + ',ou=People,dc=exozy,dc=me')
|
||||
os.system('EDITOR=nano ldapvi --user ' + bind_user)
|
||||
|
||||
|
|
Loading…
Reference in a new issue