Add user modification script wrapping ldapvi

This commit is contained in:
Anthony Wang 2021-08-19 17:41:35 -05:00
parent 08886d0699
commit 0a43065e7c
Signed by: a
GPG key ID: BC96B00AEC5F2D76

12
moduser Executable file
View 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')