Lines 196-202
run-parts --verbose --arg localchange --regex '^univention-samba4' -- /usr/lib/u
|
Link Here
|
---|
|
196 |
# if samba-tool user setpassword fails, reset the old password. |
196 |
# if samba-tool user setpassword fails, reset the old password. |
197 |
if [ $? != 0 ]; then |
197 |
if [ $? != 0 ]; then |
198 |
revert_password_change |
198 |
revert_password_change |
199 |
FAIL "resetting old server password for $ldap_hostdn, because samba could not set the new password locally." |
199 |
FAIL "Failed to set new password in samba, machine password set back to old password for $ldap_hostdn." |
200 |
fi |
200 |
fi |
201 |
|
201 |
|
202 |
# The password is changed on the master now, but it is not clear if |
202 |
# The password is changed on the master now, but it is not clear if |
|
218 |
# changes that would only worsen the situation. Instead, try to rollback. |
218 |
# changes that would only worsen the situation. Instead, try to rollback. |
219 |
# Reset the old password with UDM and give up. |
219 |
# Reset the old password with UDM and give up. |
220 |
revert_password_change |
220 |
revert_password_change |
221 |
FAIL "resetting old server password for $ldap_hostdn, because access to local LDAP did not work with the new password" |
221 |
FAIL "Access to local LDAP did not work with the new password, machine password set back to old password for $ldap_hostdn." |
222 |
fi |
222 |
fi |
223 |
trial_counter=$(( trial_counter - 1)) |
223 |
trial_counter=$(( trial_counter - 1)) |
224 |
done |
224 |
done |