1#%PAM-1.0 2# password-migration 3# 4# A sample PAM configuration that shows the use of pam_smbpass to migrate 5# from plaintext to encrypted passwords for Samba. Unlike other methods, 6# this can be used for users who have never connected to Samba shares: 7# password migration takes place when users ftp in, login using ssh, pop 8# their mail, etc. 9 10auth requisite pam_nologin.so 11# pam_smbpass is called IFF pam_unix succeeds. 12auth requisite pam_unix.so 13auth optional pam_smbpass.so migrate 14account required pam_unix.so 15password requisite pam_cracklib.so retry=3 16password requisite pam_unix.so shadow md5 use_authtok try_first_pass 17password optional pam_smbpass.so nullok use_authtok try_first_pass 18session required pam_unix.so 19