From d50bb6b803769c6afc503fa6f611ea9085777e50 Mon Sep 17 00:00:00 2001 From: Pragya Gandhi Date: Mon, 5 May 2025 12:39:24 +0000 Subject: [PATCH] Update --- lib/libnfs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/libnfs.c b/lib/libnfs.c index f3c26249..bbc11024 100755 --- a/lib/libnfs.c +++ b/lib/libnfs.c @@ -611,7 +611,9 @@ int nfs_set_auth_context(struct nfs_context *nfs, #endif assert(nfs->rpc->use_azauth == FALSE); - nfs->rpc->use_azauth = TRUE; + if (!strcmp(authtype,"AzAuthAAD")) { + nfs->rpc->use_azauth = TRUE; + } nfs->rpc->auth_context.magic = AUTH_CONTEXT_MAGIC; nfs->rpc->auth_context.export_path = strdup(export_path); @@ -2830,8 +2832,6 @@ rpc_null_task_authtls(struct rpc_context *rpc, int nfs_version, rpc_cb cb, struct rpc_pdu * rpc_perform_azauth(struct rpc_context *rpc, rpc_cb cb, void *private_data) { - /* MUST be called only if use_azauth is enabled */ - assert(rpc->use_azauth); assert(rpc->magic == RPC_CONTEXT_MAGIC); struct rpc_pdu *pdu;