Re: pam_radius_auth v1.3.17 missing a define???
Alan DeKok-2 wrote: David Ly wrote: I've been looking into the source code of pam radius, due to authentication failure without a entry in the local /etc/passwd file, That's the PAM value add... Could you explain what PAM value add means/is? Alan DeKok-2 wrote: You haven't said which OS this is on. There *is* more than one implementation of PAM. And IIRC, that requirement wasn't there when the module was originally written. I'm using Linux 2.6.27-7-generic (on ubuntu 8.10) Alan DeKok-2 wrote: Fix the Makefile to reference the correct libraries with this function. That worked. Thanks. (make file required some editing, because of gcc i think) -- View this message in context: http://www.nabble.com/pam_radius_auth-v1.3.17-missing-a-definetp20629756p20689780.html Sent from the FreeRadius - User mailing list archive at Nabble.com. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: pam_radius_auth v1.3.17 missing a define???
David Ly wrote: I've been looking into the source code of pam radius, due to authentication failure without a entry in the local /etc/passwd file, That's the PAM value add... and i've noticed that; /|'PAM_SM_ACCOUNT|/ must be *#define*'d prior to including |security/pam_modules.h|.' isn't being done. You haven't said which OS this is on. There *is* more than one implementation of PAM. And IIRC, that requirement wasn't there when the module was originally written. Was this done on purpose? Could this possibly be factor in my problem. I would test it out, however I am unable to build the library on my machine. A fresh downloaded make gives me Nov 21 15:20:52 wisdur sshd[21221]: PAM unable to dlopen(/lib/security/pam_radius_auth.so): /lib/security/pam_radius_auth.so: undefined symbol: __stack_chk_fail_local The compiler on your OS is adding extra magic to the compiled module. Either fix that so it's just a compiler, or fix the Makefile to reference the correct libraries with this function. Either way, the module works on other systems. So the module isn't broken. (Just a side note, Does anyone knows why I get these errors when trying to build.) ggc -v --- gcc version 4.1.1 sigh The messages clearly say WARNING, not ERROR. And the compiler warnings have been extended significantly since the module was originally written. Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
pam_radius_auth v1.3.17 missing a define???
Hi, I've been looking into the source code of pam radius, due to authentication failure without a entry in the local /etc/passwd file, and i've noticed that; /|'PAM_SM_ACCOUNT|/ must be *#define*'d prior to including |security/pam_modules.h|.' isn't being done. Was this done on purpose? Could this possibly be factor in my problem. I would test it out, however I am unable to build the library on my machine. A fresh downloaded make gives me Nov 21 15:20:52 wisdur sshd[21221]: PAM unable to dlopen(/lib/security/pam_radius_auth.so): /lib/security/pam_radius_auth.so: undefined symbol: __stack_chk_fail_local Nov 21 15:20:52 wisdur sshd[21221]: PAM adding faulty module: /lib/security/pam_radius_auth.so Thanks in advance -David Ly (Just a side note, Does anyone knows why I get these errors when trying to build.) ggc -v --- gcc version 4.1.1 pam_radius_auth.c: In function ‘talk_radius’: pam_radius_auth.c:887: warning: pointer targets in passing argument 6 of ‘recvfrom’ differ in signedness pam_radius_auth.c: In function ‘pam_sm_authenticate’: pam_radius_auth.c:1103: warning: assignment from incompatible pointer type - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html