NACM: Improved error message when no username included, and added username
This commit is contained in:
parent
87e49ca37a
commit
1be158b7be
4 changed files with 18 additions and 8 deletions
|
|
@ -1805,7 +1805,7 @@ from_client_msg(clixon_handle h,
|
|||
goto done;
|
||||
if (ret == 0){ /* Do NACM RPC validation */
|
||||
creds = clicon_nacm_credentials(h);
|
||||
if ((ret = verify_nacm_user(h, creds, ce->ce_username, username, cbret)) < 0)
|
||||
if ((ret = verify_nacm_user(h, creds, ce->ce_username, username, rpc, cbret)) < 0)
|
||||
goto done;
|
||||
if (ret == 0){ /* credentials fail */
|
||||
ce->ce_out_rpc_errors++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue