Simon Fonteneau 2 months ago
parent
commit
68be32b502
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      libsyncpassword.py

+ 1
- 1
libsyncpassword.py View File

@@ -45,7 +45,7 @@ userAccountControl: %s
45 45
 def update_password(mail,pwd,uac,dn,sama,samdb_loc):
46 46
     script = config.get('common', 'external_script_password')
47 47
     try:
48
-        subprocess.check_output('echo "%s" | %s %s %s' % (script,pwd.encode('base64'),sama,mail),shell=True)
48
+        subprocess.check_output('echo "%s" | %s %s %s' % (script,str(pwd.encode('base64')),sama,mail),shell=True)
49 49
         syslog.syslog(syslog.LOG_WARNING, '[NOTICE] Updated password for %s' % mail)
50 50
         disable_clear_password(pwd,uac,dn,sama,samdb_loc)
51 51
     except Exception as e:

Loading…
Cancel
Save