diff options
author | Rafal Szczesniak <mimir@samba.org> | 2005-06-03 19:09:21 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:17:31 -0500 |
commit | ad43b5cba966baf5f8057126d73a1bd68e3adde5 (patch) | |
tree | c33535c73d3d9dcf9dc0ce77e8dea3c41b272294 | |
parent | 6a71fa86fb5c923e13c26b826386820cf6bda98d (diff) | |
download | samba-ad43b5cba966baf5f8057126d73a1bd68e3adde5.tar.gz samba-ad43b5cba966baf5f8057126d73a1bd68e3adde5.tar.bz2 samba-ad43b5cba966baf5f8057126d73a1bd68e3adde5.zip |
r7247: User shorter and more convenient name for credentials in
libnet context.
rafal
(This used to be commit 702a4dd2dcb776e18acb294c87b8f460516d1383)
-rw-r--r-- | source4/libnet/libnet.h | 3 | ||||
-rw-r--r-- | source4/libnet/libnet_rpc.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/source4/libnet/libnet.h b/source4/libnet/libnet.h index 7f42461496..a9a6ca1653 100644 --- a/source4/libnet/libnet.h +++ b/source4/libnet/libnet.h @@ -25,9 +25,10 @@ struct libnet_context { * a client env context * a user env context */ - struct cli_credentials *credentials; + struct cli_credentials *cred; }; + #include "libnet/libnet_passwd.h" #include "libnet/libnet_time.h" #include "libnet/libnet_rpc.h" diff --git a/source4/libnet/libnet_rpc.c b/source4/libnet/libnet_rpc.c index 82dc06a0f6..30f7784361 100644 --- a/source4/libnet/libnet_rpc.c +++ b/source4/libnet/libnet_rpc.c @@ -100,7 +100,8 @@ static NTSTATUS libnet_rpc_connect_standard(struct libnet_context *ctx, TALLOC_C binding, r->standard.in.dcerpc_iface_uuid, r->standard.in.dcerpc_iface_version, - ctx->credentials); + ctx->cred); + if (!NT_STATUS_IS_OK(status)) { r->standard.out.error_string = talloc_asprintf(mem_ctx, "dcerpc_pipe_connect to pipe %s failed with %s\n", |