sys-auth/
pam_smb

PAM module for authenticating against an SMB (such as the Win_x families) server

http://www.csn.ul.ie/~airlied/pam_smb/