1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-28 01:58:17 +03:00

libnetjoin: Remove machine account if we failed to set password.

Guenther
(This used to be commit db5e0ed186429667a7f6fc67e4b19a7ca75f357e)
This commit is contained in:
Günther Deschner 2008-04-14 14:42:19 +02:00
parent ae4159f0f7
commit a4e0f60c4e

View File

@ -905,6 +905,10 @@ static NTSTATUS libnet_join_joindomain_rpc(TALLOC_CTX *mem_ctx,
}
if (!NT_STATUS_IS_OK(status)) {
rpccli_samr_DeleteUser(pipe_hnd, mem_ctx,
&user_pol);
libnet_join_set_error_string(mem_ctx, r,
"Failed to set password for machine account (%s)\n",
nt_errstr(status));