Still a work-in-progress, but this compiles and works as expected on AIX 5.1.
I haven't implemented getgrset yet, the NSS API is pretty different from AIX in that case. It also needs a mechanism to allocate more memory when the winbind response is larger than 4096 bytes. I had to copy fill_pwent, fill_grent, next_token and get_static from winbind_nss.c because they currently IFDEF out on AIX because of the lack of NSS API (I think). Compile with: gcc -o WINBIND winbind_aix.c -lsys -lcsys -lc -I../include -I.. -Xlinker -bM:SRE -Xlinker -ewb_aix_init wb_common.o Feedback would be nice, does anybody other than me need this? -Steve
winbind_aix.c
Description: Binary data