diff options
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; |