Migrate from ldap to kandim

This commit is contained in:
7marcus9 2025-06-14 21:14:59 +02:00
parent 84afce5957
commit 4c371dd6d1
3 changed files with 43 additions and 2 deletions

View file

@ -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()