Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/libnfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ int nfs_set_auth_context(struct nfs_context *nfs,
/*
* If not devtest, don't allow auth unless transport is secure.
*/
if (nfs->rpc->wanted_xprtsec == RPC_XPRTSEC_NONE) {
if ((nfs->rpc->wanted_xprtsec == RPC_XPRTSEC_NONE) && (strcmp(authtype, "AzAuthAAD") == 0)) {
RPC_LOG(nfs->rpc, 1, "Cannot enable auth for xprtsec=none");
return -1;
}
Expand Down
3 changes: 2 additions & 1 deletion lib/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,8 @@ rpc_write_to_socket(struct rpc_context *rpc)
*/
if (rpc->use_azauth &&
!rpc->auth_context.is_authorized &&
!pdu->is_head_prio) {
!pdu->is_head_prio && strcmp(rpc->auth_context.auth_type,
"AzAuthAAD") == 0) {
RPC_LOG(rpc, 2, "Not sending queued RPC pdu %p as "
"connection is not authorized", pdu);
/*
Expand Down