X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fuserdir-ldap.git;a=blobdiff_plain;f=userdir_ldap.py;h=c84a655d6dfce24b78cf093053c7a77e0541da1b;hp=e6c628da5649c3898b389140b923b47f779fd308;hb=0539c19e661f05d992fdeb6e05ec9dcf99bb691d;hpb=3643cb3fcb8e5b9f4afddbb300dab4885767b82c diff --git a/userdir_ldap.py b/userdir_ldap.py index e6c628d..c84a655 100644 --- a/userdir_ldap.py +++ b/userdir_ldap.py @@ -459,5 +459,5 @@ def make_hmac(str): File.close(); return hmac.new(HmacKey, str, sha1_module).hexdigest() -def make_sudopasswd_hmac(purpose, uuid, hosts, cryptedpass): - return make_hmac(':'.join([purpose, uuid, hosts, cryptedpass])) +def make_passwd_hmac(status, purpose, uid, uuid, hosts, cryptedpass): + return make_hmac(':'.join([status, purpose, uid, uuid, hosts, cryptedpass]))