so, I realize this is an old topic but I am also having issues integrating PAM and FreeRadius.
I've followed everything in this thread (and searched the forums) but nothing seem to be working.
It looks like FreeRadius is having trouble loading the PAM module. I'm running FreeRadius from the command line so I can see the debug output. The following is the relevant output:
Code:
Info: Found Auth-Type = PAM
Fri Dec 18 10:14:48 2009 : Info: +- entering group authenticate {...}
Fri Dec 18 10:14:48 2009 : Debug: pam_pass: using pamauth string <radiusd> for pam.conf lookup
Fri Dec 18 10:14:48 2009 : Debug: pam_pass: function pam_authenticate FAILED for <yubikey>. Reason: Module is unknown
Fri Dec 18 10:14:48 2009 : Info: ++[pam] returns reject
Fri Dec 18 10:14:48 2009 : Info: Failed to authenticate the user.
and here is my radiusd file in /etc/pam.d
Code:
auth required /lib/security/pam_yubico.so id=1 debug key=eraser authfile=/etc/freeradius/yubiauthfile.map url=http://yubikey/yubico/validation/ykval-verify?id=%d&otp=%s
If I change 'required' to 'sufficient' instead of 'module is unknown' I get "permission denied". If I replace the yubikey module with the pam_unix module radius authenticates just fine using the regular user password.
I can test my validation server manually and it seems to work. I have also configured SSH to use the exact same yubikey PAM with relatively no issues. I've got pam spitting out debug messages and I see it appending output when I ssh but not when I use 'radtest'
does anybody know what is going on?