On stabilise le plugin Python en virant toute occurrence de print.
* Désolé. \o/
This commit is contained in:
parent
2c27a030ee
commit
4b36a51d99
102 changed files with 513 additions and 703 deletions
|
@ -30,5 +30,5 @@ if True: # TODO retirer les @
|
|||
@account required pam_permit.so
|
||||
@# and here are more per-package modules (the "Additional" block)
|
||||
if has("ldap"):
|
||||
print "account [success=ok new_authtok_reqd=done ignore=ignore user_unknown=ignore authinfo_unavail=ignore default=bad] %s minimum_uid=500" % pam_module
|
||||
out("account [success=ok new_authtok_reqd=done ignore=ignore user_unknown=ignore authinfo_unavail=ignore default=bad] %s minimum_uid=500" % (pam_module,))
|
||||
@# end of pam-auth-update config
|
||||
|
|
|
@ -21,10 +21,10 @@ pam-auth-update(8) for details.
|
|||
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"
|
||||
print "auth [success=1 default=ignore] %s minimum_uid=500 use_first_pass" % pam_module
|
||||
@auth [success=2 default=ignore] pam_unix.so nullok_secure
|
||||
out("auth [success=1 default=ignore] %s minimum_uid=500 use_first_pass" % pam_module)
|
||||
else:
|
||||
print "auth [success=1 default=ignore] pam_unix.so nullok_secure"
|
||||
@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;
|
||||
|
|
|
@ -45,7 +45,7 @@ pam-auth-update(8) for details.
|
|||
if has('ldap'):
|
||||
@password requisite pam_cracklib.so retry=3 minlen=9 dcredit=-1 ucredit=-1 lcredit=-1 ocredit=1 reject_username gecoscheck enforce_for_root difok=0
|
||||
@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=500 ignore_unkown_user md5 try_first_pass" % pam_module
|
||||
out("password [success=1 default=ignore] %s minimum_uid=500 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
|
||||
|
|
|
@ -29,5 +29,5 @@ if True: # TODO get rid of @
|
|||
@# and here are more per-package modules (the "Additional" block)
|
||||
@session required pam_unix.so
|
||||
if has('ldap'):
|
||||
print "session [success=ok default=ignore] %s minimum_uid=500" % pam_module
|
||||
out("session [success=ok default=ignore] %s minimum_uid=500" % (pam_module,))
|
||||
@# end of pam-auth-update config
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue