forked from shaba/openuds
New generation of pam files for tunneler based on cmake
This commit is contained in:
parent
f301e4654a
commit
0b390e406a
4
ssh-tunnel/pam-http/.gitignore
vendored
Normal file
4
ssh-tunnel/pam-http/.gitignore
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
CMakeCache.txt
|
||||||
|
CMakeFiles
|
||||||
|
*.cmake
|
||||||
|
Makefile
|
@ -1,4 +1,5 @@
|
|||||||
cmake_minimum_required(VERSION 2.8)
|
cmake_minimum_required(VERSION 2.8)
|
||||||
|
set(CMAKE_BUILD_TYPE Release)
|
||||||
project (UDS_PAM)
|
project (UDS_PAM)
|
||||||
|
|
||||||
add_subdirectory(src)
|
add_subdirectory(src)
|
@ -1,7 +1,32 @@
|
|||||||
set(uds_pam_SRCS
|
set(pam_uds_SRCS
|
||||||
pam_uds.c
|
pam_uds.c
|
||||||
http.c
|
http.c
|
||||||
http.h
|
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user