added check ldap tool
This commit is contained in:
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