mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
commit
aac2d089d4
2 changed files with 3 additions and 5 deletions
|
@ -48,7 +48,7 @@ class MyMigration(Migration):
|
||||||
"label": "SFTP",
|
"label": "SFTP",
|
||||||
"showTile": "FALSE",
|
"showTile": "FALSE",
|
||||||
"isProtected": "TRUE",
|
"isProtected": "TRUE",
|
||||||
}
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
if "ssh.main" not in existing_perms:
|
if "ssh.main" not in existing_perms:
|
||||||
|
@ -63,7 +63,7 @@ class MyMigration(Migration):
|
||||||
"label": "SSH",
|
"label": "SSH",
|
||||||
"showTile": "FALSE",
|
"showTile": "FALSE",
|
||||||
"isProtected": "TRUE",
|
"isProtected": "TRUE",
|
||||||
}
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
# Add a bash terminal to each users
|
# Add a bash terminal to each users
|
||||||
|
|
|
@ -94,9 +94,7 @@ def tools_adminpw(new_password, check_strength=True):
|
||||||
try:
|
try:
|
||||||
ldap.update(
|
ldap.update(
|
||||||
"cn=admin",
|
"cn=admin",
|
||||||
{
|
{"userPassword": [new_hash]},
|
||||||
"userPassword": [new_hash]
|
|
||||||
},
|
|
||||||
)
|
)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error("unable to change admin password : %s" % e)
|
logger.error("unable to change admin password : %s" % e)
|
||||||
|
|
Loading…
Add table
Reference in a new issue