X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=ud-generate;h=1a3d3f6a6727036ad91ec8fedde8ca6f24b2604b;hb=0539c19e661f05d992fdeb6e05ec9dcf99bb691d;hp=5515b983677dabf941b3432a53c215bd43af4736;hpb=57f176cbcf765c3f524fb6d7800d5c21978f9b97;p=mirror%2Fuserdir-ldap.git diff --git a/ud-generate b/ud-generate index 5515b98..1a3d3f6 100755 --- a/ud-generate +++ b/ud-generate @@ -230,7 +230,7 @@ def GenShadowSudo(l,File, untrusted): hosts = Match.group(3) cryptedpass = Match.group(4) - if status != 'confirmed:'+make_sudopasswd_hmac('password-is-confirmed', uuid, hosts, cryptedpass): + if status != 'confirmed:'+make_passwd_hmac('password-is-confirmed', 'sudo', x[1]['uid'][0], uuid, hosts, cryptedpass): continue for_all = hosts == "*" for_this_host = CurrentHost in hosts.split(',')