gcc -Wall -fPIC -c src/pam_radius_auth.c -o pam_radius_auth.o
src/pam_radius_auth.c: In function 'rad_converse':
src/pam_radius_auth.c:1004: warning: passing argument 3 of 'pam_get_item' from incompatible pointer type
src/pam_radius_auth.c:1007: warning: passing argument 2 of 'conv->conv' from incompatible pointer type
src/pam_radius_auth.c: In function 'pam_sm_authenticate':
src/pam_radius_auth.c:1056: warning: passing argument 2 of 'pam_get_user' from incompatible pointer type
src/pam_radius_auth.c:1071: warning: passing argument 3 of 'pam_get_item' from incompatible pointer type
src/pam_radius_auth.c:1095: warning: passing argument 3 of 'pam_get_item' from incompatible pointer type
src/pam_radius_auth.c:1109: warning: passing argument 3 of 'pam_get_item' from incompatible pointer type
src/pam_radius_auth.c:1142: warning: passing argument 3 of 'pam_get_item' from incompatible pointer type
src/pam_radius_auth.c: In function 'pam_sm_setcred':
src/pam_radius_auth.c:1246: warning: passing argument 3 of 'pam_get_data' from incompatible pointer type
src/pam_radius_auth.c: In function 'pam_private_session':
src/pam_radius_auth.c:1268: warning: passing argument 2 of 'pam_get_user' from incompatible pointer type
src/pam_radius_auth.c:1288: warning: passing argument 3 of 'pam_get_item' from incompatible pointer type
src/pam_radius_auth.c: In function 'pam_sm_chauthtok':
src/pam_radius_auth.c:1368: warning: passing argument 2 of 'pam_get_user' from incompatible pointer type
src/pam_radius_auth.c:1388: warning: passing argument 3 of 'pam_get_item' from incompatible pointer type
src/pam_radius_auth.c:1397: warning: passing argument 3 of 'pam_get_item' from incompatible pointer type
src/pam_radius_auth.c:1402: warning: passing argument 3 of 'pam_get_item' from incompatible pointer type
gcc -Wall -fPIC -c src/md5.c -o md5.o
gcc -shared pam_radius_auth.o md5.o -lpam -lc -o pam_radius_auth.so
Ok, I am now working on AIX 7.1 and have a build of free radius module v1.4. Configured the OS for pam auth, and here are my results:2-factor auth completes, but then the shell exits. I actually see the MOTD, but am right away logged out.