Propagate username changes to groups in LDAP
When the username is changed, the LDAP node representing the user (cn=<pseudo>,cn=Utilisateurs,dc=ldap,dc=<domain>,dc=<tld>
) is updated but not the node representing the groups the user belongs to (cn=<group>,ou=posix,ou=groups,dc=ldap,dc=<domain>,dc=<tld>
).
That means the LDAP and the DB are desynchronized (for the BDD, the user still belongs to the group X but for the LDAP in the group X there is only the old uid
(=pseudo) and not the new one) and expecially for ssh groups, the user can't log in anymore.