Jean-Philippe Pialasse
84bf8e5c22
- remove reference to deprecated rssh [SME: 12670] - template /etc/pam.d/sshd to remove motd [SME: 12740]
16 lines
379 B
Plaintext
16 lines
379 B
Plaintext
{
|
|
# Remove AllowRSSH propertie
|
|
# Reset Shell property if /usr/bin/rssh
|
|
|
|
foreach my $account ($DB->get_all)
|
|
{
|
|
if (defined $account->prop('Shell') && ($account->prop('Shell') eq "/usr/bin/rssh") )
|
|
{
|
|
$account->delete_prop('Shell');
|
|
}
|
|
next unless (defined $account->prop('AllowRSSH'));
|
|
$account->delete_prop('AllowRSSH');
|
|
}
|
|
}
|
|
|