summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorArun Scaria <arunscaria91@gmail.com>2011-06-23 03:17:57 +0530
committerArun Scaria <arunscaria91@gmail.com>2011-06-23 03:17:57 +0530
commitb061ea033e8225a4fd185745a8734a98be5b01cb (patch)
treeafa60bce5303fc815fa5f5499fbfde9acf1eae9c /src
parent9be6ed2d662d57e7d595714aa85126a84727e49b (diff)
downloadsssd_unused-b061ea033e8225a4fd185745a8734a98be5b01cb.tar.gz
sssd_unused-b061ea033e8225a4fd185745a8734a98be5b01cb.tar.xz
sssd_unused-b061ea033e8225a4fd185745a8734a98be5b01cb.zip
Modification to makefile --with-sudo-plugin-path
Diffstat (limited to 'src')
-rw-r--r--src/conf_macros.m421
-rw-r--r--src/responder/sudo/sudosrv.c2
-rw-r--r--src/sss_client/sudo_plugin/sss_sudo_cli.h2
-rw-r--r--src/sss_client/sudo_plugin/sss_sudoplugin.c5
4 files changed, 27 insertions, 3 deletions
diff --git a/src/conf_macros.m4 b/src/conf_macros.m4
index af9cb4f2..b626c89f 100644
--- a/src/conf_macros.m4
+++ b/src/conf_macros.m4
@@ -29,9 +29,28 @@ AC_DEFUN([WITH_PLUGIN_PATH],
config_pluginpath=$with_plugin_path
fi
AC_SUBST(pluginpath)
- AC_DEFINE_UNQUOTED(DATA_PROVIDER_PLUGINS_PATH, "$config_pluginpath", [Path to the SSSD data provider plugins])
+ AC_DEFINE_UNQUOTED(DATA_PROVIDER_PLUGINS_PATH, "$config_pluginpath", [Path to the SSSD sudo plugins])
])
+AC_DEFUN([WITH_SUDO_PLUGIN_PATH],
+ [ AC_ARG_WITH([sudo-plugin-path],
+ [AC_HELP_STRING([--with-sudo-plugin-path=PATH],
+ [Path to the SSSD sudo plugins [/usr/lib/sudo]]
+ )
+ ]
+ )
+ sudo_pluginpath="${libdir}/sudo"
+ sudo_config_pluginpath="\"LIBDIR\"/sudo"
+ if test x"$with_sudo_plugin_path" != x; then
+ sudo_pluginpath=$with_sudo_plugin_path
+ sudo_config_pluginpath=$with_sudo_plugin_path
+ fi
+ AC_SUBST(sudo_pluginpath)
+ AC_DEFINE_UNQUOTED(SUDO_PLUGINS_PATH, "$sudo_config_pluginpath", [Path to the SSSD data provider plugins])
+ ])
+
+
+
AC_DEFUN([WITH_PID_PATH],
[ AC_ARG_WITH([pid-path],
[AC_HELP_STRING([--with-pid-path=PATH],
diff --git a/src/responder/sudo/sudosrv.c b/src/responder/sudo/sudosrv.c
index 6353fd72..f6b4b1e7 100644
--- a/src/responder/sudo/sudosrv.c
+++ b/src/responder/sudo/sudosrv.c
@@ -2,6 +2,8 @@
SSSD
SUDO Responder
+
+ Author - Arun Scaria <arunscaria91@gmail.com>
Copyright (C) Arun Scaria <arunscaria91@gmail.com> (2011)
diff --git a/src/sss_client/sudo_plugin/sss_sudo_cli.h b/src/sss_client/sudo_plugin/sss_sudo_cli.h
index 76dc242f..5bfa183f 100644
--- a/src/sss_client/sudo_plugin/sss_sudo_cli.h
+++ b/src/sss_client/sudo_plugin/sss_sudo_cli.h
@@ -6,7 +6,7 @@
Authors:
Arun Scaria <arunscaria91@gmail.com>
- Copyright (C) 2011 Red Hat
+ Copyright (C) 2011 Arun Scaria <arunscaria91@gmail.com>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/src/sss_client/sudo_plugin/sss_sudoplugin.c b/src/sss_client/sudo_plugin/sss_sudoplugin.c
index 54bdbc8e..021ee8c9 100644
--- a/src/sss_client/sudo_plugin/sss_sudoplugin.c
+++ b/src/sss_client/sudo_plugin/sss_sudoplugin.c
@@ -6,12 +6,15 @@
Authors:
Arun Scaria <arunscaria91@gmail.com>
- Copyright (C) 2011 Red Hat
+ Copyright (C) 2011 Arun Scaria <arunscaria91@gmail.com>.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
+
+ The coding of some of the components in this programe is based on the
+ code adapted from the sudo project at www.sudo.ws
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of