Il ne faut modifier le home que s'il n'y a vraiment eu un changement.
This commit is contained in:
parent
3b8817c8de
commit
afe60843e7
1 changed files with 12 additions and 11 deletions
|
@ -322,6 +322,7 @@ def services_to_restart(conn, old_attrs={}, new_attrs={}, created_object=[], del
|
|||
# Je met la reconfiguration du home / del_user à la main pour la création/suppression d'un compte crans
|
||||
# parce que que je vois pas vraiement comment faire autrement
|
||||
if 'cransAccount' in added_objectClass + updated_objectClass:
|
||||
if str(new_attrs.get('uid', [''])) != str(old_attrs.get(['uid'], [''])):
|
||||
arg = services_to_args['home'](old_attrs, new_attrs)
|
||||
service_to_restart(conn, "home", list(arg), 0)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue