* Remove unused options from rublon default config * Remove safe|secure options * Allow 9 digits long passcode for passcode bypass * Change name of 'Mobile Passcode' to 'Passcode' * Do not display any prompt when user is waiting * remove unused alloca.h header * Add autopushPrompt option * Change name OTP method * Change enrolement message handling * ad static string ctor * Addded postrm script * Rename 01_rublon_ssh.conf to 01-rublon-ssh.conf * restart sshd service after rublon package instalation * Fix sshd not restarting bug on ubuntu 24.04 * disable logging from websocket-io * change package name to match old package name * Fix compilation issue when using non owning ptr * Set version to 2.0.0
51 lines
1018 B
CMake
Executable File
51 lines
1018 B
CMake
Executable File
add_library(rublon-ssh
|
|
SHARED
|
|
pam.cpp
|
|
)
|
|
|
|
set_target_properties(rublon-ssh PROPERTIES PREFIX "")
|
|
set_target_properties(rublon-ssh PROPERTIES OUTPUT_NAME "pam_rublon")
|
|
|
|
target_compile_options(rublon-ssh
|
|
PUBLIC
|
|
-flto
|
|
-Wno-deprecated-declarations
|
|
)
|
|
|
|
target_link_options(rublon-ssh
|
|
PUBLIC
|
|
-fpic
|
|
-flto
|
|
)
|
|
|
|
target_link_libraries(rublon-ssh
|
|
PUBLIC
|
|
rublon-ssh-ifc
|
|
-lcurl
|
|
-lssl
|
|
-lcrypto
|
|
-lsioclient_tls
|
|
)
|
|
|
|
execute_process (
|
|
COMMAND bash -c "awk -F= '/^ID=/{print $2}' /etc/os-release |tr -d '\n' | tr -d '\"'"
|
|
OUTPUT_VARIABLE outOS
|
|
)
|
|
|
|
if(${outOS} MATCHES "centos|rhel" )
|
|
message(INFO "detected rhen base system")
|
|
set(_destination /usr/lib64/security/)
|
|
elseif(${outOS} MATCHES "debian|ubuntu")
|
|
message(INFO "detected debian based system")
|
|
set(_destination /usr/lib/x86_64-linux-gnu/security/)
|
|
endif()
|
|
|
|
install(
|
|
TARGETS
|
|
rublon-ssh
|
|
DESTINATION
|
|
${_destination}
|
|
COMPONENT
|
|
PAM
|
|
)
|