retire les switchs if has('wheezy')

This commit is contained in:
Daniel STAN 2015-05-02 12:46:41 +02:00
parent fd785612d9
commit efa75412b2
11 changed files with 14 additions and 34 deletions

View file

@ -19,11 +19,7 @@ pam-auth-update(8) for details.
""")
if not has('wheezy'):
print "account sufficient %s" %pam_module
print "account required pam_unix.so use_first_pass"
else:
if True: # TODO retirer les @
@# here are the per-package modules (the "Primary" block)
@account [success=1 new_authtok_reqd=done default=ignore] pam_unix.so use_first_pass
@# here's the fallback if no module succeeds

View file

@ -18,11 +18,7 @@ pam-auth-update to manage selection of other modules. See
pam-auth-update(8) for details.
""")
if not has('wheezy'):
print "auth sufficient %s" % pam_module
print "auth required pam_unix.so nullok_secure use_first_pass"
else:
if True: # TODO get rid of @
@# here are the per-package modules (the "Primary" block)
if has('ldap'):
print "auth [success=2 default=ignore] pam_unix.so nullok_secure"

View file

@ -17,12 +17,7 @@ pam-auth-update to manage selection of other modules. See
pam-auth-update(8) for details.
""")
if not has('wheezy'):
print "session sufficient %s" % pam_module
print "session required pam_unix.so"
print "session required pam_mkhomedir.so"
else:
if True: # TODO get rid of @
@# here are the per-package modules (the "Primary" block)
@session [default=1] pam_permit.so
@# here's the fallback if no module succeeds