summaryrefslogtreecommitdiff
path: root/source3/lib/netapi/user.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-04-10 22:44:00 +0200
committerGünther Deschner <gd@samba.org>2008-04-10 22:44:00 +0200
commitef6ed54765b1d8ccaabfb3268f8427cc791b738b (patch)
tree91b0c0c65d326ea8eb271e1cfed98db9a0e85652 /source3/lib/netapi/user.c
parent3d5aecd2b940215c2566b2e429c2cc3803ff0ad4 (diff)
downloadsamba-ef6ed54765b1d8ccaabfb3268f8427cc791b738b.tar.gz
samba-ef6ed54765b1d8ccaabfb3268f8427cc791b738b.tar.bz2
samba-ef6ed54765b1d8ccaabfb3268f8427cc791b738b.zip
Use libnetapi_open_pipe in netapi functions.
Guenther (This used to be commit 5804d8b112e1da022988c635284eb4799974d4c7)
Diffstat (limited to 'source3/lib/netapi/user.c')
-rw-r--r--source3/lib/netapi/user.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/source3/lib/netapi/user.c b/source3/lib/netapi/user.c
index d9505bc067..31e5faa594 100644
--- a/source3/lib/netapi/user.c
+++ b/source3/lib/netapi/user.c
@@ -185,9 +185,8 @@ WERROR NetUserAdd_r(struct libnetapi_ctx *ctx,
goto done;
}
- pipe_cli = cli_rpc_pipe_open_noauth(cli, PI_SAMR, &status);
- if (!pipe_cli) {
- werr = ntstatus_to_werror(status);
+ werr = libnetapi_open_pipe(ctx, cli, PI_SAMR, &pipe_cli);
+ if (!W_ERROR_IS_OK(werr)) {
goto done;
}
@@ -378,9 +377,8 @@ WERROR NetUserDel_r(struct libnetapi_ctx *ctx,
goto done;
}
- pipe_cli = cli_rpc_pipe_open_noauth(cli, PI_SAMR, &status);
- if (!pipe_cli) {
- werr = ntstatus_to_werror(status);
+ werr = libnetapi_open_pipe(ctx, cli, PI_SAMR, &pipe_cli);
+ if (!W_ERROR_IS_OK(werr)) {
goto done;
}
@@ -602,9 +600,8 @@ WERROR NetUserEnum_r(struct libnetapi_ctx *ctx,
goto done;
}
- pipe_cli = cli_rpc_pipe_open_noauth(cli, PI_SAMR, &status);
- if (!pipe_cli) {
- werr = ntstatus_to_werror(status);
+ werr = libnetapi_open_pipe(ctx, cli, PI_SAMR, &pipe_cli);
+ if (!W_ERROR_IS_OK(werr)) {
goto done;
}