You may try the following which has been reported to work on Solaris 2.7 and HP-UX. It enables smdb to access AFS file system via PAM authentication.