From e04d1e4b1e209058f1adfaf25c86997127f240d5 Mon Sep 17 00:00:00 2001 From: Alexis Gavoty Date: Sat, 6 Jul 2013 19:01:11 +0200 Subject: [PATCH] Bugfix --- yunohost_user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yunohost_user.py b/yunohost_user.py index d914b42e..f965578e 100644 --- a/yunohost_user.py +++ b/yunohost_user.py @@ -113,7 +113,7 @@ def user_create(username, firstname, lastname, mail, password): raise YunoHostError(22, _("Domain not found : ")+ mail[mail.find('@')+1:]) user_added = os.system('/usr/sbin/smbldap-useradd -a -A 1 -m -M "'+ mail +'" -N "'+ firstname +'" -S "'+ lastname +'" -Z "objectclass=mailAccount,maildrop='+ username +'" -p '+ username) - pwd_changed = os.system('echo -e \''+ password +'\n'+ password +'\' | smbldap-passwd '+ username) + pwd_changed = os.system('echo "'+ password +'\n'+ password +'" | smbldap-passwd '+ username) if user_added == pwd_changed == 0: #TODO: Send a welcome mail to user