From 25c99a635507abfe6af4a1f0a9fc5a103d1880c0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Isma=C3=ABl=20Bouya?= Date: Sun, 1 Jul 2018 11:35:47 +0200 Subject: [PATCH] Allow to connect when ldap is not available --- modules/base_installation/manifests/ldap.pp | 8 ++++---- 1 file 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 { ensure => present, service => $service, type => "password", - control => "[success=done new_authtok_reqd=ok ignore=ignore default=bad]", + control => "[success=done new_authtok_reqd=ok authinfo_unavail=ignore ignore=ignore default=bad]", module => "pam_ldap.so", - arguments => "ignore_unknown_user", + arguments => ["ignore_unknown_user", "ignore_authinfo_unavail"], position => 'before *[type="password" and module="pam_unix.so"]', require => Package["ruby-augeas"], } @@ -57,9 +57,9 @@ class base_installation::ldap inherits base_installation { ensure => present, service => $service, type => $type, - control => "[success=done new_authtok_reqd=ok ignore=ignore default=bad]", + control => "[success=done new_authtok_reqd=ok authinfo_unavail=ignore ignore=ignore default=bad]", module => "pam_ldap.so", - arguments => "ignore_unknown_user", + arguments => ["ignore_unknown_user", "ignore_authinfo_unavail"], position => "before *[type=\"$type\" and module=\"pam_unix.so\"]", require => Package["ruby-augeas"], } -- 2.41.0