diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2014-10-01 14:47:09 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2014-10-22 15:44:08 +0200 |
commit | bc13c352ba9c2877f1e9bc62e55ad60fc000a55d (patch) | |
tree | b0599b793f702a84fb9d62658baf555351accbb0 /src/conf_macros.m4 | |
parent | 5eda23c28c582b43b2a0a165b1750f3875c0fa84 (diff) | |
download | sssd-bc13c352ba9c2877f1e9bc62e55ad60fc000a55d.tar.gz sssd-bc13c352ba9c2877f1e9bc62e55ad60fc000a55d.tar.xz sssd-bc13c352ba9c2877f1e9bc62e55ad60fc000a55d.zip |
BUILD: Add a config option for sssd user, own private directories as the user
Adds a new configure-time option that lets you select the user to run
SSSD as. The default is 'root' for backwards compatibility.
The directories the deamon stores its private data at are also created
as owned by this user during install time.
Reviewed-by: Pavel Reichl <preichl@redhat.com>
Reviewed-by: Simo Sorce <simo@redhat.com>
Diffstat (limited to 'src/conf_macros.m4')
-rw-r--r-- | src/conf_macros.m4 | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/conf_macros.m4 b/src/conf_macros.m4 index 4aa58138c..fbee81f56 100644 --- a/src/conf_macros.m4 +++ b/src/conf_macros.m4 @@ -737,3 +737,22 @@ AC_DEFUN([WITH_NFS_LIB_PATH], fi AC_SUBST(nfslibpath) ]) + +AC_DEFUN([WITH_SSSD_USER], + [ AC_ARG_WITH([sssd-user], + [AS_HELP_STRING([--with-sssd-user=<user>], + [User for running SSSD (root)] + ) + ] + ) + + SSSD_USER=root + + if test x"$with_sssd_user" != x; then + SSSD_USER=$with_sssd_user + fi + + AC_SUBST(SSSD_USER) + AC_DEFINE_UNQUOTED(SSSD_USER, "$SSSD_USER", ["The default user to run SSSD as"]) + AM_CONDITIONAL([SSSD_USER], [test x"$with_sssd_user" != x]) + ]) |