diff options
author | Stefan Metzmacher <metze@samba.org> | 2010-04-15 17:20:21 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2010-04-15 17:32:31 +0200 |
commit | 2570f8dcdadcc889dcc33824b2dcfe4e6050781b (patch) | |
tree | 17fdf0b03e1c3efc05ad265f8f0ca2294ce810cd | |
parent | b2261c82722d5c2f5479ec3177a0fc0e17163aca (diff) | |
download | samba-2570f8dcdadcc889dcc33824b2dcfe4e6050781b.tar.gz samba-2570f8dcdadcc889dcc33824b2dcfe4e6050781b.tar.bz2 samba-2570f8dcdadcc889dcc33824b2dcfe4e6050781b.zip |
s4:libnet_passwd: check for NT_STATUS_RPC_PROCNUM_OUT_OF_RANGE in the ChangePassword calls
metze
-rw-r--r-- | source4/libnet/libnet_passwd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/libnet/libnet_passwd.c b/source4/libnet/libnet_passwd.c index 93d126f583..ed007543c5 100644 --- a/source4/libnet/libnet_passwd.c +++ b/source4/libnet/libnet_passwd.c @@ -102,7 +102,7 @@ static NTSTATUS libnet_ChangePassword_samr(struct libnet_context *ctx, TALLOC_CT /* 2. try samr_ChangePasswordUser3 */ status = dcerpc_samr_ChangePasswordUser3_r(c.out.dcerpc_pipe->binding_handle, mem_ctx, &pw3); - if (!NT_STATUS_EQUAL(status, NT_STATUS_NET_WRITE_FAULT)) { + if (!NT_STATUS_EQUAL(status, NT_STATUS_RPC_PROCNUM_OUT_OF_RANGE)) { if (NT_STATUS_IS_OK(status) && !NT_STATUS_IS_OK(pw3.out.result)) { status = pw3.out.result; } @@ -137,7 +137,7 @@ static NTSTATUS libnet_ChangePassword_samr(struct libnet_context *ctx, TALLOC_CT /* 3. try samr_ChangePasswordUser2 */ status = dcerpc_samr_ChangePasswordUser2_r(c.out.dcerpc_pipe->binding_handle, mem_ctx, &pw2); - if (!NT_STATUS_EQUAL(status, NT_STATUS_NET_WRITE_FAULT)) { + if (!NT_STATUS_EQUAL(status, NT_STATUS_RPC_PROCNUM_OUT_OF_RANGE)) { if (NT_STATUS_IS_OK(status) && !NT_STATUS_IS_OK(pw2.out.result)) { status = pw2.out.result; } @@ -166,7 +166,7 @@ static NTSTATUS libnet_ChangePassword_samr(struct libnet_context *ctx, TALLOC_CT /* 4. try samr_OemChangePasswordUser2 */ status = dcerpc_samr_OemChangePasswordUser2_r(c.out.dcerpc_pipe->binding_handle, mem_ctx, &oe2); - if (!NT_STATUS_EQUAL(status, NT_STATUS_NET_WRITE_FAULT)) { + if (!NT_STATUS_EQUAL(status, NT_STATUS_RPC_PROCNUM_OUT_OF_RANGE)) { if (NT_STATUS_IS_OK(status) && !NT_STATUS_IS_OK(oe2.out.result)) { status = oe2.out.result; } |