ConfD User Community

No username/password argument with External Authentication [Solved]


I have setup a basic NCS (version 4.5.1) server and would like to use External Authentication to Radius. The scripts are ready, but the problem is that the username/password seem not to be provided to the authentication script.

Some more details;
In /etc/ncs/ncs.conf;



import os
import sys

fo = open("/tmp/foo.txt", “w”)
fo.write( “Arguments:\n”)

print(“accept ncsadmin ncsoper 9999 9999 /tmp”);

Login works, because of the last line. However after doing;

otter@sambal:~$ ssh tailf@nso-01-tst -p 2024
tailf@nso-01-tst’s password:

tailf connected from using ssh on nso-01-tst

in /tmp/foo.txt the output is as follows;

[root@nso-01-tst ncs]# cat /tmp/foo.txt

So, without the username and password, there is no method to do the Radius check within the script.

Is there anyone that can provide me with a hint what I’m doing wrong?


I found the cause of the problem. The username/password are not provided as ARGVs, but they are provided on STDIN.

The executable will receive the username and the clear text password on its standard input in the format “[${USER};${PASS};]\n”.

Problem fixed.