@@ -484,10 +484,10 @@ nc_server_config_add_ssh_user_interactive(const struct ly_ctx *ctx, const char *
484484 NC_CHECK_ARG_RET (NULL , ctx , endpt_name , user_name , config , 1 );
485485
486486 ret = asprintf (& path , "/ietf-netconf-server:netconf-server/listen/endpoint[name='%s']/ssh/ssh-server-parameters/"
487- "client-authentication/users/user[name='%s']" , endpt_name , user_name );
487+ "client-authentication/users/user[name='%s']/libnetconf2-netconf-server:keyboard-interactive " , endpt_name , user_name );
488488 NC_CHECK_ERRMEM_GOTO (ret == -1 , path = NULL ; ret = 1 , cleanup );
489489
490- ret = nc_server_config_append (ctx , path , "libnetconf2-netconf-server:keyboard-interactive " , NULL , config );
490+ ret = nc_server_config_append (ctx , path , "use-system-auth " , NULL , config );
491491 if (ret ) {
492492 goto cleanup ;
493493 }
@@ -507,11 +507,11 @@ nc_server_config_add_ch_ssh_user_interactive(const struct ly_ctx *ctx, const cha
507507 NC_CHECK_ARG_RET (NULL , ctx , client_name , endpt_name , user_name , config , 1 );
508508
509509 ret = asprintf (& path , "/ietf-netconf-server:netconf-server/call-home/netconf-client[name='%s']/endpoints/"
510- "endpoint[name='%s']/ssh/ssh-server-parameters/client-authentication/users/user[name='%s']" ,
511- client_name , endpt_name , user_name );
510+ "endpoint[name='%s']/ssh/ssh-server-parameters/client-authentication/users/user[name='%s']/"
511+ "libnetconf2-netconf-server:keyboard-interactive" , client_name , endpt_name , user_name );
512512 NC_CHECK_ERRMEM_GOTO (ret == -1 , path = NULL ; ret = 1 , cleanup );
513513
514- ret = nc_server_config_append (ctx , path , "libnetconf2-netconf-server:keyboard-interactive " , NULL , config );
514+ ret = nc_server_config_append (ctx , path , "use-system-auth " , NULL , config );
515515 if (ret ) {
516516 goto cleanup ;
517517 }
0 commit comments