diff --git a/ssh-tunnel/pam-http/.gitignore b/ssh-tunnel/pam-http/.gitignore new file mode 100644 index 00000000..c1f75a6e --- /dev/null +++ b/ssh-tunnel/pam-http/.gitignore @@ -0,0 +1,4 @@ +CMakeCache.txt +CMakeFiles +*.cmake +Makefile \ No newline at end of file diff --git a/ssh-tunnel/pam-http/CMakeLists.txt b/ssh-tunnel/pam-http/CMakeLists.txt index e7020870..74873da9 100644 --- a/ssh-tunnel/pam-http/CMakeLists.txt +++ b/ssh-tunnel/pam-http/CMakeLists.txt @@ -1,4 +1,5 @@ cmake_minimum_required(VERSION 2.8) +set(CMAKE_BUILD_TYPE Release) project (UDS_PAM) add_subdirectory(src) \ No newline at end of file diff --git a/ssh-tunnel/pam-http/src/CMakeLists.txt b/ssh-tunnel/pam-http/src/CMakeLists.txt index ba7bae00..06fbaf66 100644 --- a/ssh-tunnel/pam-http/src/CMakeLists.txt +++ b/ssh-tunnel/pam-http/src/CMakeLists.txt @@ -1,7 +1,32 @@ -set(uds_pam_SRCS +set(pam_uds_SRCS pam_uds.c http.c http.h ) -add_library(uds_pam SHARED ${uds_pam_SRCS}) +set(nss_uds_SRCS + shadow.c + passwd.c + group.c + http.c + http.h +) + +add_library(pam_uds SHARED ${pam_uds_SRCS}) +set_target_properties(pam_uds PROPERTIES + OUTPUT_NAME pam_uds + PREFIX "" + SUFFIX ".so" +) +target_link_libraries(pam_uds curl pam) + + +add_library(nss_uds SHARED ${nss_uds_SRCS}) + +set_target_properties(nss_uds PROPERTIES + OUTPUT_NAME nss_uds + PREFIX "lib" + SUFFIX ".so.2" +) + +target_link_libraries(nss_uds curl pam)