I was trying to configure two factor auth for ssh using pam_radius on my Solaris.
Quote:
SunOS solaris 5.11 11.3 i86pc i386 i86pc
|
I keep getting an error "Invalid Argument" as shown below
Quote:
[ID 801593 auth.debug] pam_radius_auth: Sending RADIUS request code 1
[ID 801593 auth.debug] pam_radius_auth: DEBUG: get_ipaddr(127.0.0.1) returned 0.
[ID 801593 auth.error] pam_radius_auth: Error sending RADIUS packet to server 127.0.0.1:1812: Invalid argument
|
The following is the way I am deploying pam_radius currently.
Quote:
pkg install gcc-48
pkg install git
git clone https://github.com/FreeRADIUS/pam_radius.git
cd pam_radius
./configure
export CC=gcc
gmake
cp pam_radius_auth.so /usr/lib/security/
mkdir /etc/raddb/
echo "127.0.0.1:1812 secret 1" > /etc/raddb/server
cat > /etc/pam.d/sshd-kbdint <<EOF
auth requisite pam_authtok_get.so.1
auth required pam_dhkeys.so.1
auth required pam_radius_auth.so debug use_first_pass
auth required pam_unix_auth.so.1
EOF
|
Any ideas on what I can do here?