Title: Pam_radius, AIX 5.1 and OpenSSH

Good day to all:

I want use pam_radius PAM client 1.3.16 on AIX 5.1 to work with the OpenSSH. I have compiled the OpenSSH 3.8.1p1 with PAM support. But I am not able to compile pam_radius module.

Here is the web page where I download the pam_radius client: http://www.freeradius.org/pam_radius_auth/

Has anyone done it ? Any help is appreciated.

I got this when I "make" on original source codes:

cc1: warning: -fPIC ignored for AIX (all code is position independent)
pam_radius_auth.c: In function `talk_radius':
pam_radius_auth.c:880: warning: passing arg 6 of `nrecvfrom' from incompatible pointer type
pam_radius_auth.c: In function `rad_converse':
pam_radius_auth.c:1016: warning: passing arg 3 of `pam_get_item' from incompatible pointer type
pam_radius_auth.c:1019: warning: passing arg 2 of pointer to function from incompatible pointer type
pam_radius_auth.c: At top level:
pam_radius_auth.c:1050: syntax error before `int'
pam_radius_auth.c: In function `pam_sm_authenticate':
pam_radius_auth.c:1071: warning: passing arg 2 of `pam_get_user' from incompatible pointer type
pam_radius_auth.c:1099: warning: passing arg 3 of `pam_get_item' from incompatible pointer type
pam_radius_auth.c:1113: warning: passing arg 3 of `pam_get_item' from incompatible pointer type
pam_radius_auth.c:1146: warning: passing arg 3 of `pam_get_item' from incompatible pointer type
pam_radius_auth.c: At top level:
pam_radius_auth.c:1235: syntax error before `int'
pam_radius_auth.c: In function `pam_sm_setcred':
pam_radius_auth.c:1242: warning: passing arg 3 of `pam_get_data' from incompatible pointer type
pam_radius_auth.c: In function `pam_private_session':
pam_radius_auth.c:1267: warning: passing arg 2 of `pam_get_user' from incompatible pointer type
pam_radius_auth.c:1288: warning: passing arg 3 of `pam_get_item' from incompatible pointer type
pam_radius_auth.c: At top level:
pam_radius_auth.c:1336: syntax error before `int'
pam_radius_auth.c:1343: syntax error before `int'
pam_radius_auth.c:1354: syntax error before `int'
pam_radius_auth.c: In function `pam_sm_chauthtok':
pam_radius_auth.c:1374: warning: passing arg 2 of `pam_get_user' from incompatible pointer type
pam_radius_auth.c:1395: warning: passing arg 3 of `pam_get_item' from incompatible pointer type
pam_radius_auth.c:1404: warning: passing arg 3 of `pam_get_item' from incompatible pointer type
pam_radius_auth.c:1409: warning: passing arg 3 of `pam_get_item' from incompatible pointer type
pam_radius_auth.c: At top level:
pam_radius_auth.c:1583: syntax error before `int'
make: 1254-004 The error code from the last command is 1.

I am using the make and gcc from IBM Linix Tool box for AIX 5L: http://www-1.ibm.com/servers/aix/products/aixos/linux/download.html. I also tried the gcc 3.0.1.0 with same error

Notice that I am able to modify the source code to compile with no error, and the Radius client is connecting to my Radius server. But the Radius server does not recognize the password I sent to it via this freeradius pam client. I am not sure if there is any data type mismatch, or incompatible parameters in the PAM function call.

Any help is very appreciated.

Thanks

Eric


Reply via email to