mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
bugfix
This commit is contained in:
parent
d6387c6880
commit
aa5c80de85
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ def tools_ldapinit(password=None):
|
|||
|
||||
os.system('chmod 600 /etc/smbldap-tools/smbldap_bind.conf')
|
||||
os.system('smbpasswd -w yunohost')
|
||||
sid = subprocess.check_output(['net', 'getlocalsid']).strip().split(':')[1][1:]
|
||||
sid = subprocess.check_output(['net', 'getlocalsid', 'YUNOHOST']).strip().split(':')[1][1:]
|
||||
os.system('echo \'SID="'+ sid +'"\' >> /etc/smbldap-tools/smbldap.conf')
|
||||
if password is not None:
|
||||
os.system('echo "'+ password +'\n'+ password +'" | smbldap-populate')
|
||||
|
|
Loading…
Add table
Reference in a new issue