summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2020-01-24 14:50:23 +0100
committerOleksandr Byelkin <sanja@mariadb.com>2020-01-24 14:50:23 +0100
commitbfc24bb2ecff2f9a305307086cd4c3c4aae14eaa (patch)
tree9b01539207b6c11cba84b83d3ab8e78cd51de79e /plugin
parent2833e906190e4fa3b0261a204822d419542aebe7 (diff)
parentceda5f724fd1ca1bcb6fb113af55179849c057d0 (diff)
downloadmariadb-git-bfc24bb2ecff2f9a305307086cd4c3c4aae14eaa.tar.gz
Merge branch '10.3' into 10.4
Diffstat (limited to 'plugin')
-rw-r--r--plugin/auth_pam/CMakeLists.txt7
-rw-r--r--plugin/auth_pam/mapper/user_map.conf13
2 files changed, 20 insertions, 0 deletions
diff --git a/plugin/auth_pam/CMakeLists.txt b/plugin/auth_pam/CMakeLists.txt
index e7a9d423b04..a556b870719 100644
--- a/plugin/auth_pam/CMakeLists.txt
+++ b/plugin/auth_pam/CMakeLists.txt
@@ -23,5 +23,12 @@ IF(HAVE_PAM_APPL_H)
ENDIF()
IF(TARGET auth_pam OR TARGET auth_pam_v1)
ADD_SUBDIRECTORY(testing)
+ ADD_LIBRARY(pam_user_map MODULE mapper/pam_user_map.c)
+ TARGET_LINK_LIBRARIES(pam_user_map pam)
+ SET_TARGET_PROPERTIES (pam_user_map PROPERTIES PREFIX "")
+ IF(INSTALL_PAMDIR)
+ INSTALL(TARGETS pam_user_map DESTINATION ${INSTALL_PAMDIR} COMPONENT Server)
+ INSTALL(FILES mapper/user_map.conf DESTINATION /etc/security COMPONENT Server)
+ ENDIF()
ENDIF()
ENDIF(HAVE_PAM_APPL_H)
diff --git a/plugin/auth_pam/mapper/user_map.conf b/plugin/auth_pam/mapper/user_map.conf
new file mode 100644
index 00000000000..4af8fb0fe10
--- /dev/null
+++ b/plugin/auth_pam/mapper/user_map.conf
@@ -0,0 +1,13 @@
+#
+# Configuration file for pam_user_map.so
+#
+# defines mapping in the form
+#
+# orig_user_name: mapped_user_name
+#
+# or (to map all users in a specific group)
+#
+# @group_name: mapped_user_name
+#
+# comments and empty lines are ignored
+#