Migrate from ldap to kandim
This commit is contained in:
parent
84afce5957
commit
4c371dd6d1
3 changed files with 43 additions and 2 deletions
|
@ -5,10 +5,10 @@ import sys
|
|||
|
||||
destfile = "authkeyfile/authorized_keys"
|
||||
|
||||
p = subprocess.Popen(["./ldap_query.py"], stdout=subprocess.PIPE, stdin=subprocess.PIPE)
|
||||
p = subprocess.Popen(["./kandim_query.py"], stdout=subprocess.PIPE, stdin=subprocess.PIPE)
|
||||
(po, pr) = p.communicate()
|
||||
if(p.returncode != 0):
|
||||
print("Data from ldap_query.py seems to be invalid. QUIT")
|
||||
print("Data from kandim_query.py seems to be invalid. QUIT")
|
||||
sys.exit(1)
|
||||
|
||||
newhash = hashlib.md5(po).hexdigest()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue