2021-08-19 22:41:35 +00:00
|
|
|
#!/usr/bin/python3
|
|
|
|
|
|
|
|
import os
|
|
|
|
|
|
|
|
|
|
|
|
# Get user details
|
|
|
|
username = input('Enter username: ')
|
|
|
|
|
2021-08-20 21:34:00 +00:00
|
|
|
if username == 'Manager':
|
2021-08-20 22:03:44 +00:00
|
|
|
bind_user = 'cn=Manager,dc=exozy,dc=me'
|
2021-08-20 21:34:00 +00:00
|
|
|
else:
|
2021-08-20 22:03:44 +00:00
|
|
|
bind_user = 'uid=' + username + ',ou=People,dc=exozy,dc=me'
|
|
|
|
|
2021-08-19 22:41:35 +00:00
|
|
|
|
|
|
|
# Modify user
|
2021-09-17 16:11:29 +00:00
|
|
|
os.system('ldapvi --user ' + bind_user)
|
2021-08-19 22:41:35 +00:00
|
|
|
|