summaryrefslogtreecommitdiffstats
path: root/src/krb5_plugin
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2014-07-16 21:43:30 +0200
committerJakub Hrozek <jhrozek@redhat.com>2014-09-02 10:39:24 +0200
commit8a5e793a0576250da80371e53aa3e7eba15cdb63 (patch)
tree5e0533d309ba63b9f317c57671430e4a79ca7953 /src/krb5_plugin
parent8cfd1e0d696a573a92ef011a64317b9054f5c45f (diff)
downloadsssd-8a5e793a0576250da80371e53aa3e7eba15cdb63.tar.gz
sssd-8a5e793a0576250da80371e53aa3e7eba15cdb63.tar.xz
sssd-8a5e793a0576250da80371e53aa3e7eba15cdb63.zip
Add conditional build for MIT Kerberos localauth plugin
This patch adds everything what is needed to build the MIT Kerberos localauth plugin if the used version of MIT Kerberos supports it. It does not implement the plugin. Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Diffstat (limited to 'src/krb5_plugin')
-rw-r--r--src/krb5_plugin/sssd_krb5_localauth_plugin.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/krb5_plugin/sssd_krb5_localauth_plugin.c b/src/krb5_plugin/sssd_krb5_localauth_plugin.c
new file mode 100644
index 000000000..93fbbc295
--- /dev/null
+++ b/src/krb5_plugin/sssd_krb5_localauth_plugin.c
@@ -0,0 +1,28 @@
+/*
+ Authors:
+ Sumit Bose <sbose@redhat.com>
+
+ Copyright (C) 2014 Red Hat
+
+ 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/>.
+*/
+
+#include <krb5/localauth_plugin.h>
+
+krb5_error_code
+localauth_sssd_initvt(krb5_context context, int maj_ver, int min_ver,
+ krb5_plugin_vtable vtable)
+{
+ return KRB5_PLUGIN_VER_NOTSUPP;
+}