pam_ldap-184 on AIX 5.3
Has anyone succesfully compiled this version, or indeed any version of the pam_ldap module on AIX 5.3?
We've been trying to compile the pam_ldap module to allow us to use PAM enabled imapd (UW) to authenticate against an alternate LDAP database (we use inbuilt AIX LDAP auth for the rest). We've tried a variety of combinations of systems, from a crufty install upgraded again and again over many years, to a fairly fresh install of AIX, using both gcc and native cc to no avail, we either end up with a broken module or a failure to compile totally.
A salient failure would seem to be:
gcc -DHAVE_CONFIG_H -DLDAP_REFERRALS -DLDAP_DEPRECATED -D_THREAD_SAFE -I/usr/l
ocal/openldap-2.3.39//include -g -O2 -Wall -fPIC -c pam_ldap.c
pam_ldap.c: In function `_read_config':
pam_ldap.c:835: warning: implicit declaration of function `strcasecmp'
pam_ldap.c:861: warning: implicit declaration of function `strncasecmp'
pam_ldap.c: In function `_connect_as_user':
pam_ldap.c:2118: warning: implicit declaration of function `snprintf'
pam_ldap.c: In function `_pam_ldap_get_session':
pam_ldap.c:2746: warning: passing arg 3 of `pam_get_data' from incompatible poin
ter type
pam_ldap.c: In function `pam_sm_open_session':
pam_ldap.c:3387: warning: passing arg 3 of `pam_get_data' from incompatible poin
ter type
pam_ldap.c: In function `pam_sm_chauthtok':
pam_ldap.c:3453: warning: passing arg 3 of `pam_get_data' from incompatible poin
ter type
pam_ldap.c:3464: warning: passing arg 3 of `pam_get_data' from incompatible poin
ter type
pam_ldap.c:3606: warning: passing arg 3 of `pam_get_data' from incompatible poin
ter type
pam_ldap.c: In function `pam_sm_acct_mgmt':
pam_ldap.c:3847: warning: passing arg 3 of `pam_get_data' from incompatible poin
ter type
gcc -DHAVE_CONFIG_H -DLDAP_REFERRALS -DLDAP_DEPRECATED -D_THREAD_SAFE -I/usr/l
ocal/openldap-2.3.39//include -g -O2 -Wall -fPIC -c md5.c
/usr/ccs/bin/ld -o pam_ldap.so -bM:SRE -bnoentry -bE:./exports.aix -brtl -lc
-L/usr/local/openldap-2.3.39//lib -blibpath:/usr/local/openldap-2.3.39//lib pam_
ldap.o md5.o -lldap -llber
ld: 0711-317 ERROR: Undefined symbol: .pam_get_item
ld: 0711-317 ERROR: Undefined symbol: .pam_get_data
ld: 0711-317 ERROR: Undefined symbol: .pam_set_data
ld: 0711-317 ERROR: Undefined symbol: .pam_set_item
ld: 0711-317 ERROR: Undefined symbol: .pam_get_user
ld: 0711-317 ERROR: Undefined symbol: .pam_strerror
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
gmake: *** [pam_ldap.so] Error 8
Any clues, suggested versions, or precompiled binaries will be gladly accepted.
NB we have pam_ldap and nss_ldap succesfully running on our Linux and Solaris boxen, but AIX is still eluding us.
Thanks