s3:rpc_client: map fault codes to NTSTATUS with dcerpc_fault_to_nt_status()
authorStefan Metzmacher <metze@samba.org>
Sat, 23 Apr 2011 22:00:40 +0000 (00:00 +0200)
committerJeremy Allison <jra@samba.org>
Mon, 25 Apr 2011 18:10:18 +0000 (11:10 -0700)
commit7031faeefc1c9ec5af5fdaee0bcfd3410640ff00
tree6aa4fe34c1b670ab6f7f8a85627d02624b84205d
parentf8415f5cefa640a4da513335bc2d00a1bdc30bdf
s3:rpc_client: map fault codes to NTSTATUS with dcerpc_fault_to_nt_status()

Most fault codes have a NTSTATUS representation, so use that.

This brings the fault handling in common with the source4/librpc/rpc code,
which make it possible to share more highlevel code, between source3 and
source4 as the error checking can be the same now.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sun Apr 24 10:44:53 CEST 2011 on sn-devel-104
(cherry picked from commit f7bc84409a7a6736ec2cf1110dd7200a954e3b7e)
source3/lib/netapi/user.c
source3/libnet/libnet_join.c
source3/rpc_client/cli_pipe.c
source3/winbindd/winbindd_cm.c
source3/winbindd/winbindd_msrpc.c
source3/winbindd/winbindd_pam.c