Run autopep8 on all Python scripts
This commit is contained in:
parent
d619b166be
commit
6504f796fa
2
deluser
2
deluser
|
@ -2,8 +2,8 @@
|
|||
|
||||
# A wrapper script over ldapdelete
|
||||
|
||||
from sys import argv
|
||||
from subprocess import run
|
||||
from sys import argv
|
||||
|
||||
|
||||
def deluser(username):
|
||||
|
|
6
moduser
6
moduser
|
@ -3,16 +3,16 @@
|
|||
# A wrapper script over ldapvi
|
||||
# Requires http://www.lichteblau.com/ldapvi/
|
||||
|
||||
from sys import argv
|
||||
from subprocess import run
|
||||
from ldappass import ldappass
|
||||
from sys import argv
|
||||
|
||||
|
||||
def moduser(username):
|
||||
"""Modify an existing user"""
|
||||
|
||||
if username == 'Manager':
|
||||
run(['ldapvi', '-w', open('/etc/ldappass', 'r').read(), '--user', 'cn=Manager,dc=exozy,dc=me'])
|
||||
run(['ldapvi', '-w', open('/etc/ldappass', 'r').read(),
|
||||
'--user', 'cn=Manager,dc=exozy,dc=me'])
|
||||
else:
|
||||
run(['ldapvi', '--user', 'uid=' + username + ',ou=People,dc=exozy,dc=me'])
|
||||
|
||||
|
|
Loading…
Reference in New Issue