summaryrefslogtreecommitdiff
path: root/source3/lib/netapi
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2021-03-18 11:12:09 +0100
committerGünther Deschner <gd@samba.org>2021-03-24 00:55:32 +0000
commit3506800d3effca667235eabf185a93274cc78901 (patch)
treefc086ad4ea54a8636b2a45bf7830ec218c43d172 /source3/lib/netapi
parent9285e64a623c1a9a65e6d74ef26bf48d25d2be6b (diff)
downloadsamba-3506800d3effca667235eabf185a93274cc78901.tar.gz
s3:netapi: Get username/password from cli_credentials in netapi.c
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
Diffstat (limited to 'source3/lib/netapi')
-rw-r--r--source3/lib/netapi/netapi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/netapi/netapi.c b/source3/lib/netapi/netapi.c
index ea67ecdec5a..21890ecfabc 100644
--- a/source3/lib/netapi/netapi.c
+++ b/source3/lib/netapi/netapi.c
@@ -255,7 +255,7 @@ NET_API_STATUS libnetapi_get_username(struct libnetapi_ctx *ctx,
}
if (username != NULL) {
- *username = ctx->username;
+ *username = cli_credentials_get_username(ctx->creds);
}
return NET_API_STATUS_SUCCESS;
@@ -278,7 +278,7 @@ NET_API_STATUS libnetapi_get_password(struct libnetapi_ctx *ctx,
}
if (password != NULL) {
- *password = ctx->password;
+ *password = cli_credentials_get_password(ctx->creds);
}
return NET_API_STATUS_SUCCESS;