added check ldap tool
This commit is contained in:
1 parent
5c6c53cac2
commit
ecae51b307
1 file changed
+20
Executable
+20
@@ -0,0 +1,20 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
import argparse
|
||||
from getpass import getpass
|
||||
|
||||
from auth.psildap import get_data
|
||||
|
||||
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument("username")
|
||||
clargs = parser.parse_args()
|
||||
|
||||
username = clargs.username
|
||||
password = getpass()
|
||||
|
||||
data = get_data(username, password)
|
||||
print(data)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user