summaryrefslogtreecommitdiffstats
path: root/src/conf_macros.m4
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2011-05-17 16:49:19 +0200
committerStephen Gallagher <sgallagh@redhat.com>2011-05-20 05:49:25 -0400
commit068dbee9ca7bf5b37330eff91c94ae10f288d09f (patch)
treea11f08234e2b6043aa13826d59d999550f9da980 /src/conf_macros.m4
parentd9d716b547d256c03df97b0ff8282349a0f365ad (diff)
downloadsssd_unused-068dbee9ca7bf5b37330eff91c94ae10f288d09f.zip
sssd_unused-068dbee9ca7bf5b37330eff91c94ae10f288d09f.tar.gz
sssd_unused-068dbee9ca7bf5b37330eff91c94ae10f288d09f.tar.xz
Add new options to override shell value
https://fedorahosted.org/sssd/ticket/742
Diffstat (limited to 'src/conf_macros.m4')
-rw-r--r--src/conf_macros.m414
1 files changed, 14 insertions, 0 deletions
diff --git a/src/conf_macros.m4 b/src/conf_macros.m4
index 31048d3..af9cb4f 100644
--- a/src/conf_macros.m4
+++ b/src/conf_macros.m4
@@ -317,3 +317,17 @@ AC_DEFUN([WITH_CRYPTO],
AM_CONDITIONAL([HAVE_NSS], [test x"$cryptolib" = xnss])
AM_CONDITIONAL([HAVE_LIBCRYPTO], [test x"$cryptolib" = xlibcrypto])
])
+
+AC_DEFUN([WITH_NOLOGIN_SHELL],
+ [ AC_ARG_WITH([nologin-shell],
+ [AC_HELP_STRING([--with-nologin-shell=PATH],
+ [The shell used to deny access to users [/sbin/nologin]]
+ )
+ ]
+ )
+ nologin_shell="/sbin/nologin"
+ if test x"$with_nologin_shell" != x; then
+ nologin_shell=$with_nologin_shell
+ fi
+ AC_DEFINE_UNQUOTED(NOLOGIN_SHELL, "$nologin_shell", [The shell used to deny access to users])
+ ])