mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
Bugfix
This commit is contained in:
parent
a3afd20f13
commit
e04d1e4b1e
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue