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
10 auth requisite pam_nologin.so
11 # pam_smbpass is called IFF pam_unix succeeds.
12 auth requisite pam_unix.so
13 auth optional pam_smbpass.so migrate
14 account required pam_unix.so
15 password requisite pam_cracklib.so retry=3
16 password requisite pam_unix.so shadow md5 use_authtok try_first_pass
17 password optional pam_smbpass.so nullok use_authtok try_first_pass
18 session required pam_unix.so