diff options
author | Andrew Bartlett <abartlet@samba.org> | 2014-09-23 09:12:20 -0700 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2014-10-17 12:57:07 +0200 |
commit | 295b323b1c65cd8387b3977a189f81253c139b43 (patch) | |
tree | 999dddd197ddd32458a39e6ced44728672ae8e29 /source3/libsmb | |
parent | be994ca579c6c302d9d6487c863699b3e4457210 (diff) | |
download | samba-295b323b1c65cd8387b3977a189f81253c139b43.tar.gz samba-295b323b1c65cd8387b3977a189f81253c139b43.tar.xz samba-295b323b1c65cd8387b3977a189f81253c139b43.zip |
s3-librpc: Add cli_rpc_pipe_open_with_creds()
This provides a credentials-based interface. In the long term, we
will want to change this not to reference the credentials, but for now
this suits the caller in winbindd_cm.c
Andrew Bartlett
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/libsmb')
-rw-r--r-- | source3/libsmb/auth_generic.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/libsmb/auth_generic.c b/source3/libsmb/auth_generic.c index 1f6c681a6e..68d14516f3 100644 --- a/source3/libsmb/auth_generic.c +++ b/source3/libsmb/auth_generic.c @@ -48,6 +48,14 @@ NTSTATUS auth_generic_set_password(struct auth_generic_state *ans, return NT_STATUS_OK; } +NTSTATUS auth_generic_set_creds(struct auth_generic_state *ans, + struct cli_credentials *creds) +{ + talloc_unlink(ans->credentials, creds); + ans->credentials = creds; + return NT_STATUS_OK; +} + NTSTATUS auth_generic_client_prepare(TALLOC_CTX *mem_ctx, struct auth_generic_state **auth_generic_state) { struct auth_generic_state *ans; |