summaryrefslogtreecommitdiffstats
path: root/src/responder/common
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2012-12-15 16:24:25 +0100
committerJakub Hrozek <jhrozek@redhat.com>2012-12-18 20:03:27 +0100
commiteae21d66fbca2628593d6b3f18e5326f91ba6fe8 (patch)
tree35294ae75b9193d1e1ac2db04be86fad74b7eb4c /src/responder/common
parent301f7c3099fbb5f149eeeaf1010a19ed7db8d003 (diff)
downloadsssd-eae21d66fbca2628593d6b3f18e5326f91ba6fe8.tar.gz
sssd-eae21d66fbca2628593d6b3f18e5326f91ba6fe8.tar.xz
sssd-eae21d66fbca2628593d6b3f18e5326f91ba6fe8.zip
RESPONDERS: Create a common file with service names and versions
The monitor sends calls different sbus methods to different responders. Instead of including headers of the particular responders directly in monitor, which breaks layering a little, create a common header file that will be included from src/responder/common/
Diffstat (limited to 'src/responder/common')
-rw-r--r--src/responder/common/responder_sbus.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/src/responder/common/responder_sbus.h b/src/responder/common/responder_sbus.h
new file mode 100644
index 000000000..4927d72a7
--- /dev/null
+++ b/src/responder/common/responder_sbus.h
@@ -0,0 +1,43 @@
+/*
+ SSSD
+
+ SSS Client Responder, common header file
+
+ Copyright (C) Red Hat, 2012
+
+ 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.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
+#ifndef __SSS_RESPONDER_SBUS_H__
+#define __SSS_RESPONDER_SBUS_H__
+
+#define NSS_SBUS_SERVICE_NAME "nss"
+#define NSS_SBUS_SERVICE_VERSION 0x0001
+
+#define SSS_PAM_SBUS_SERVICE_NAME "pam"
+#define SSS_PAM_SBUS_SERVICE_VERSION 0x0001
+
+#define SSS_SUDO_SBUS_SERVICE_NAME "sudo"
+#define SSS_SUDO_SBUS_SERVICE_VERSION 0x0001
+
+#define SSS_AUTOFS_SBUS_SERVICE_NAME "autofs"
+#define SSS_AUTOFS_SBUS_SERVICE_VERSION 0x0001
+
+#define SSS_SSH_SBUS_SERVICE_NAME "ssh"
+#define SSS_SSH_SBUS_SERVICE_VERSION 0x0001
+
+#define PAC_SBUS_SERVICE_NAME "pac"
+#define PAC_SBUS_SERVICE_VERSION 0x0001
+
+#endif /* __SSS_RESPONDER_SBUS_H__ */