diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-07-01 11:35:47 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-07-01 11:47:06 +0200 |
commit | 25c99a635507abfe6af4a1f0a9fc5a103d1880c0 (patch) | |
tree | e66ae3fe6d65775fce5a2a37c4bf6c8bc23eb592 | |
parent | d83778a66ca5effd6489fc56be2834adcf93fa58 (diff) | |
download | Puppet-25c99a635507abfe6af4a1f0a9fc5a103d1880c0.tar.gz Puppet-25c99a635507abfe6af4a1f0a9fc5a103d1880c0.tar.zst Puppet-25c99a635507abfe6af4a1f0a9fc5a103d1880c0.zip |
Allow to connect when ldap is not available
-rw-r--r-- | modules/base_installation/manifests/ldap.pp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/base_installation/manifests/ldap.pp b/modules/base_installation/manifests/ldap.pp index 5a35327..9291402 100644 --- a/modules/base_installation/manifests/ldap.pp +++ b/modules/base_installation/manifests/ldap.pp | |||
@@ -43,9 +43,9 @@ class base_installation::ldap inherits base_installation { | |||
43 | ensure => present, | 43 | ensure => present, |
44 | service => $service, | 44 | service => $service, |
45 | type => "password", | 45 | type => "password", |
46 | control => "[success=done new_authtok_reqd=ok ignore=ignore default=bad]", | 46 | control => "[success=done new_authtok_reqd=ok authinfo_unavail=ignore ignore=ignore default=bad]", |
47 | module => "pam_ldap.so", | 47 | module => "pam_ldap.so", |
48 | arguments => "ignore_unknown_user", | 48 | arguments => ["ignore_unknown_user", "ignore_authinfo_unavail"], |
49 | position => 'before *[type="password" and module="pam_unix.so"]', | 49 | position => 'before *[type="password" and module="pam_unix.so"]', |
50 | require => Package["ruby-augeas"], | 50 | require => Package["ruby-augeas"], |
51 | } | 51 | } |
@@ -57,9 +57,9 @@ class base_installation::ldap inherits base_installation { | |||
57 | ensure => present, | 57 | ensure => present, |
58 | service => $service, | 58 | service => $service, |
59 | type => $type, | 59 | type => $type, |
60 | control => "[success=done new_authtok_reqd=ok ignore=ignore default=bad]", | 60 | control => "[success=done new_authtok_reqd=ok authinfo_unavail=ignore ignore=ignore default=bad]", |
61 | module => "pam_ldap.so", | 61 | module => "pam_ldap.so", |
62 | arguments => "ignore_unknown_user", | 62 | arguments => ["ignore_unknown_user", "ignore_authinfo_unavail"], |
63 | position => "before *[type=\"$type\" and module=\"pam_unix.so\"]", | 63 | position => "before *[type=\"$type\" and module=\"pam_unix.so\"]", |
64 | require => Package["ruby-augeas"], | 64 | require => Package["ruby-augeas"], |
65 | } | 65 | } |