Skip to content

Commit

Permalink
Fixed: Be more generic (10_proftpd_auth_unix.pl)
Browse files Browse the repository at this point in the history
  • Loading branch information
nuxwin committed May 6, 2017
1 parent c619a8a commit ca7b3bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/Listeners/ProFTPd/10_proftpd_auth_unix.pl
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ package Listener::ProFTPd::Auth::Unix;
my ($tplContent, $tplName) = @_;

return 0 unless $tplName eq 'proftpd.conf';
${$tplContent} =~ s/(AuthOrder\s+mod_sql.c)/$1 mod_auth_pam.c* mod_auth_unix.c/im;
${$tplContent} =~ s/(AuthOrder\s+.*)/$1 mod_auth_pam.c* mod_auth_unix.c/im;
${$tplContent} =~ s/(<\/Global>)/\n PersistentPasswd off\n$1/im;
0;
}
Expand Down

0 comments on commit ca7b3bb

Please sign in to comment.