[pam.d] La partie wheezy ne marche pas comme prévu, là ça devrait être mieux
This commit is contained in:
parent
a818dc2778
commit
08278f99fe
4 changed files with 16 additions and 10 deletions
|
@ -25,8 +25,10 @@ if not has('wheezy'):
|
|||
else:
|
||||
@# here are the per-package modules (the "Primary" block)
|
||||
if has('ldap'):
|
||||
print "auth [success=2 default=ignore] %s minimum_uid=1000" % pam_module
|
||||
@auth [success=1 default=ignore] pam_unix.so nullok_secure
|
||||
print "auth [success=2 default=ignore] pam_unix.so nullok_secure"
|
||||
print "auth [success=1 default=ignore] %s minimum_uid=1000 use_first_pass" % pam_module
|
||||
else:
|
||||
print "auth [success=1 default=ignore] pam_unix.so nullok_secure"
|
||||
@# here's the fallback if no module succeeds
|
||||
@auth requisite pam_deny.so
|
||||
@# prime the stack with a positive return value if there isn't one already;
|
||||
|
|
|
@ -42,13 +42,17 @@ pam-auth-update(8) for details.
|
|||
@# (Replaces the `OBSCURE_CHECKS_ENAB', `CRACKLIB_DICTPATH')
|
||||
|
||||
if not has('wheezy'):
|
||||
if has('ldap'):
|
||||
print "password sufficient %s ignore_unknown_user md5 try_first_pass" % pam_module
|
||||
print "password required pam_unix.so nullok obscure min=4 max=8 md5 try_first_pass"
|
||||
|
||||
else:
|
||||
@# here are the per-package modules (the "Primary" block)
|
||||
if has('ldap'):
|
||||
@password [success=2 default=ignore] pam_unix.so nullok obscure sha512 min=4 max=8 md5 try_first_pass
|
||||
print "password [success=1 default=ignore] %s minimum_uid=1000 ignore_unkown_user md5 try_first_pass" % pam_module
|
||||
else:
|
||||
@password [success=1 default=ignore] pam_unix.so nullok obscure sha512 min=4 max=8 md5 try_first_pass
|
||||
@# here's the fallback if no module succeeds
|
||||
@password requisite pam_deny.so
|
||||
@# prime the stack with a positive return value if there isn't one already;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue