* Allow 9 digits long passcode for passcode bypass * Change name of 'Mobile Passcode' to 'Passcode' * Do not display any prompt when user is waiting * Add autopushPrompt option * Change name OTP method * Change enrolement message handling * Addded postrm script * [bugfix] Restart sshd service after rublon package instalation * Rename 01_rublon_ssh.conf to 01-rublon-ssh.conf * Prepared scripts for generating rpm for alma nad rocky * Adding public key authentication option * Add postinst script and ssh configuration for using pubkey * Add GCC 7 compatybility * Cleanup includes, cleanup std::array usage * Add Static String implementation * Remove memory_resources * Add monotonic_buffer_resource in experimental c++ imlpementation * Use case insensitive map * Remove not needed code * Stop using deprecated SHA256 functions * Changed app verstion to v2.0.4 * Fixed postinst script for ubuntu * CHanged vangrantfile not to show gui * Refactor cpack + add component builds for rpm based distros
30 lines
647 B
Bash
30 lines
647 B
Bash
#!/bin/bash
|
|
|
|
RUBLON_CONFIG=/etc/rublon.config
|
|
RUBLON_SSH_CONFIG=/etc/ssh/sshd_config.d/01-rublon-ssh.conf
|
|
SSHD_PAM_CONF=/etc/pam.d/sshd
|
|
|
|
if [ -f $RUBLON_CONFIG ]
|
|
then
|
|
rm $RUBLON_CONFIG
|
|
fi
|
|
|
|
if [ -f $RUBLON_SSH_CONFIG ]
|
|
then
|
|
|
|
rm $RUBLON_SSH_CONFIG
|
|
fi
|
|
|
|
if [ -d $VERITAS_PATH ]
|
|
then
|
|
sudo rm /etc/pam.d/rublon
|
|
sudo rm /usr/openv/netbackup/pam_service.txt
|
|
else
|
|
grep -qe 'auth substack password-auth' $SSHD_PAM_CONF || sed -i -e 's/#auth substack password-auth/auth substack password-auth/g' $SSHD_PAM_CONF
|
|
sed -i '/auth required pam_rublon.so/d' $SSHD_PAM_CONF
|
|
sed -i '/account required pam_rublon.so/d' $SSHD_PAM_CONF
|
|
fi
|
|
|
|
|
|
|