diff --git a/manifests/module/ldap.pp b/manifests/module/ldap.pp index dc547bb..2f66cbd 100644 --- a/manifests/module/ldap.pp +++ b/manifests/module/ldap.pp @@ -62,6 +62,8 @@ Integer $lifetime = 0, Integer $idle_timeout = 60, Optional[Float] $connect_timeout = undef, + Integer $net_timeout = 1, + ) { $fr_package = $::freeradius::params::fr_package $fr_service = $::freeradius::params::fr_service diff --git a/templates/ldap.erb b/templates/ldap.erb index c04d3b3..eb43b45 100644 --- a/templates/ldap.erb +++ b/templates/ldap.erb @@ -642,7 +642,7 @@ ldap <%= @name %> { # failures) default: 10 # # LDAP_OPT_NETWORK_TIMEOUT is set to this value. - net_timeout = 1 + net_timeout = <%= @net_timeout %> # LDAP_OPT_X_KEEPALIVE_IDLE idle = <%= @idle %>