From f786daf7692c18d09c1097e0da3c96586af4620a Mon Sep 17 00:00:00 2001 From: Matej Ferencevic <matej.ferencevic@memgraph.io> Date: Wed, 4 Dec 2019 14:16:57 +0100 Subject: [PATCH] Install auth modules and their configuration files Reviewers: teon.banek Reviewed By: teon.banek Subscribers: pullbot Differential Revision: https://phabricator.memgraph.io/D2536 --- src/auth/CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/auth/CMakeLists.txt b/src/auth/CMakeLists.txt index 51ae47e43..cbc8dcfb7 100644 --- a/src/auth/CMakeLists.txt +++ b/src/auth/CMakeLists.txt @@ -12,3 +12,11 @@ target_link_libraries(mg-auth mg-utils) target_link_libraries(mg-auth ${Seccomp_LIBRARIES}) target_include_directories(mg-auth SYSTEM PRIVATE ${Seccomp_INCLUDE_DIRS}) + +# Install reference auth modules and their configuration files. +install(PROGRAMS ${CMAKE_CURRENT_SOURCE_DIR}/reference_modules/example.py + DESTINATION lib/memgraph/auth_module) +install(PROGRAMS ${CMAKE_CURRENT_SOURCE_DIR}/reference_modules/ldap.py + DESTINATION lib/memgraph/auth_module) +install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/reference_modules/ldap.example.yaml + DESTINATION /etc/memgraph/auth_module)