Commit a83e5fab authored by Jonathan's avatar Jonathan Committed by GitHub
Browse files

Merge pull request #40 from mrobbert/master

Add option to allow configuration of logging authentication requests
parents 07ee3f9c 582ffdfa
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -110,6 +110,9 @@ Add the radius user to the winbind privileged group. You must install winbind se
##### `syslog`
Add a syslog rule (using the `saz/rsyslog` module). Default: `false`.

##### `log_auth`
Log authentication requests (yes/no). Default: `no`.

```puppet
class { 'freeradius':
  max_requests    => 4096,
@@ -120,6 +123,7 @@ class { 'freeradius':
  wpa_supplicant  => true,
  winbind_support => true,
  syslog          => true,
  log_auth        => 'yes',
}
```

+1 −0
Original line number Diff line number Diff line
@@ -11,6 +11,7 @@ class freeradius (
  $wpa_supplicant  = false,
  $winbind_support = false,
  $syslog          = false,
  $log_auth        = 'no',
  $preserve_mods   = true,
) inherits freeradius::params {

+1 −0
Original line number Diff line number Diff line
@@ -32,6 +32,7 @@ describe 'freeradius' do
      #:wpa_supplicant => false,
      #:winbind_support => false,
      #:syslog => false,
      #:log_auth => 'no',
    }
  end
  # add these two lines in a single test block to enable puppet and hiera debug mode
+1 −1
Original line number Diff line number Diff line
@@ -318,7 +318,7 @@ log {
	#
	#  allowed values: {no, yes}
	#
	auth = no
	auth = <%= @log_auth %>

	#  Log passwords with the authentication requests.
	#  auth_badpass  - logs password if it's rejected