Skip to content

Commit

Permalink
add additional pure-ftpd.conf options
Browse files Browse the repository at this point in the history
Support for these options:
 * UnixAuthentication
 * PAMAuthentication
 * TLSCipherSuite
  • Loading branch information
Joshua Hoblitt committed Sep 10, 2013
1 parent ae03a97 commit d7cd213
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions manifests/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
$trustedip = undef,
$altlog = undef,
$pidfile = undef,
$tlsciphersuite = undef, # added post 1.0.31
$maxidletime = undef,
$maxdiskusage = undef,
$trustedgid = undef,
Expand All @@ -63,6 +64,8 @@
$pgsqlconfigfile = undef,
$puredb = undef,
$extauth = undef,
$pamauthentication = undef,
$unixauthentication = undef,
) inherits pureftpd::params {

# options taken from pure-ftpd-1.0.30/configuration-file/pure-config.pl
Expand Down Expand Up @@ -106,6 +109,7 @@
'TrustedIP',
'AltLog',
'PIDFile',
'TLSCipherSuite',
'MaxIdleTime',
'MaxDiskUsage',
'TrustedGID',
Expand All @@ -126,6 +130,8 @@
'PGSQLConfigFile',
'PureDB',
'ExtAuth',
'UnixAuthentication',
'PAMAuthentication',
]

file { $pureftpd::params::conf_path:
Expand Down
3 changes: 3 additions & 0 deletions spec/classes/config_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
'TrustedIP',
'AltLog',
'PIDFile',
'TLSCipherSuite',
'MaxIdleTime',
'MaxDiskUsage',
'TrustedGID',
Expand All @@ -60,6 +61,8 @@
'PGSQLConfigFile',
'PureDB',
'ExtAuth',
'UnixAuthentication',
'PAMAuthentication',
]

describe 'pureftpd::config' do
Expand Down

0 comments on commit d7cd213

Please sign in to comment.