Add user modification script wrapping ldapvi
This commit is contained in:
parent
08886d0699
commit
0a43065e7c
1 changed files with 12 additions and 0 deletions
12
moduser
Executable file
12
moduser
Executable file
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/python3
|
||||
|
||||
import os
|
||||
|
||||
|
||||
# Get user details
|
||||
username = input('Enter username: ')
|
||||
|
||||
|
||||
# Modify user
|
||||
os.system('EDITOR=nano ldapvi --user uid=' + username + ',ou=People,dc=exozy,dc=me')
|
||||
|
Loading…
Reference in a new issue