From: Andreas Schneider Date: Thu, 18 Mar 2021 10:12:09 +0000 (+0100) Subject: s3:netapi: Get username/password from cli_credentials in netapi.c X-Git-Tag: tevent-0.11.0~1418 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3506800d3effca667235eabf185a93274cc78901;p=thirdparty%2Fsamba.git s3:netapi: Get username/password from cli_credentials in netapi.c Signed-off-by: Andreas Schneider Reviewed-by: Guenther Deschner --- 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;