Hi,
I am attempting to compile the pam_radius_auth.so
library. We have a Radius Server and would like to
authenticate the users against the server using the
free radius client piece. System in question is
Solaris 7/8 running gcc 3.0. Initial attempts to
compile resulted in the following errors:
pam_radius_auth.c: In function `ipstr2long':
pam_radius_auth.c:155: warning: subscript has type
char'
pam_radius_auth.c: In function `good_ipaddr':
pam_radius_auth.c:191: warning: subscript has type
'char'
pam_radius_auth.c: In function `host2server':
pam_radius_auth.c:245: warning: subscript has type
'char'
pam_radius_auth.c: At top level:
pam_radius_auth.c:1013: conflicting types for
'pam_sm_authenticate'
/usr/include/security/pam_modules.h:20: previous
declaration of `pam_sm_authenticate'
pam_radius_auth.c:1216: conflicting types for
'pam_sm_setcred'
/usr/include/security/pam_modules.h:27: previous
declaration of `pam_sm_setcred'
pam_radius_auth.c: In function `pam_sm_setcred':
pam_radius_auth.c:1221: warning: passing arg 3 of
`pam_get_data' from incompatible pointer type
pam_radius_auth.c: At top level:
pam_radius_auth.c:1317: conflicting types for
`pam_sm_open_session'
/usr/include/security/pam_modules.h:41: previous
declaration of `pam_sm_open_session'
pam_radius_auth.c:1324: conflicting types for
`pam_sm_close_session'
/usr/include/security/pam_modules.h:48: previous
declaration of `pam_sm_close_session'
pam_radius_auth.c:1334: conflicting types for
`pam_sm_chauthtok'
/usr/include/security/pam_modules.h:62: previous
declaration of `pam_sm_chauthtok'
*** Error code 1
make: Fatal error: Command failed for target
`pam_radius_auth.o'
Ignoring the warnings -- I ended up commenting out the
function calls in /usr/include/security/pam_modules.h.
This resulted in a clean compile. I have edited the
pam.conf file as instructed and am at the point where
I am getting the following error in syslog:
Aug 27 13:51:42 myhost login: [ID 801593 auth.error]
pam_radius_auth: Failed looking up IP address for
RADIUS server radiusServerHostName
Aug 27 13:51:42 myhost login: [ID 801593 auth.error]
pam_radius_auth: All RADIUS servers failed to respond.
Regards,
Ravinder Sekhon
__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html