* 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
39 lines
1.2 KiB
Bash
39 lines
1.2 KiB
Bash
#!/bin/bash
|
|
|
|
SSHD_CONF=/etc/ssh/sshd_config
|
|
SSHD_PAM_CONF=/etc/pam.d/sshd
|
|
RUBLON_CONFIG=/etc/rublon.config
|
|
RUBLON_SSH_CONFIG=/etc/ssh/sshd_config.d/01-rublon-ssh.conf
|
|
VERITAS_PATH=/usr/openv/netbackup/sec/at/bin/
|
|
|
|
if [ ! -f /etc/rublon.config ]
|
|
then
|
|
cp -a /usr/share/rublon/rublon.config.defaults $RUBLON_CONFIG
|
|
chown root:root $RUBLON_CONFIG
|
|
chmod 640 $RUBLON_CONFIG
|
|
fi
|
|
|
|
if [ ! -f $RUBLON_SSH_CONFIG ]
|
|
then
|
|
cp -a /usr/share/rublon/01-rublon-ssh.conf.default $RUBLON_SSH_CONFIG
|
|
chown root:root $RUBLON_SSH_CONFIG
|
|
chmod 640 $RUBLON_SSH_CONFIG
|
|
fi
|
|
|
|
if [ -d $VERITAS_PATH ]
|
|
then
|
|
sudo cp -a /usr/share/rublon/rublon_veritas /etc/pam.d/rublon
|
|
sudo ${VERITAS_PATH}/vssat updateplugin --pluginname pam --attribute ServiceName --value "rublon" -t string
|
|
sudo cp -a /usr/share/rublon/pam_service.txt /usr/openv/netbackup/
|
|
else
|
|
grep -qe 'auth required pam_rublon.so' $SSHD_PAM_CONF || sed -i '$aauth required pam_rublon.so' $SSHD_PAM_CONF
|
|
grep -qe 'account required pam_rublon.so' $SSHD_PAM_CONF || sed -i '$aaccount required pam_rublon.so' $SSHD_PAM_CONF
|
|
fi
|
|
|
|
cd /usr/share/rublon/
|
|
checkmodule -M -m -o login_rublon.mod login_rublon.te
|
|
semodule_package -o login_rublon.pp -m login_rublon.mod
|
|
semodule -i login_rublon.pp
|
|
|
|
systemctl restart sshd
|