summaryrefslogtreecommitdiffstats
path: root/src/lib/winbind_idmap_sss/libdlopen-test-winbind-idmap.c
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2016-04-19 13:52:59 +0200
committerLukas Slebodnik <lslebodn@redhat.com>2016-06-21 12:09:28 +0200
commit1d1a0a019d8d4d9ab0f51ada03604cd2cada287e (patch)
tree84b6ba89e5753a58d3853fdff6bf1ea8edccb37e /src/lib/winbind_idmap_sss/libdlopen-test-winbind-idmap.c
parent72ceb1b4629a8e7f4f9e6dc9fae4c638e3117a26 (diff)
downloadsssd-1d1a0a019d8d4d9ab0f51ada03604cd2cada287e.tar.gz
sssd-1d1a0a019d8d4d9ab0f51ada03604cd2cada287e.tar.xz
sssd-1d1a0a019d8d4d9ab0f51ada03604cd2cada287e.zip
Add winbind idmap plugin
With this plugin winbind can use the same id-mapping as SSSD which makes it possible to run both together in a consistent way. Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
Diffstat (limited to 'src/lib/winbind_idmap_sss/libdlopen-test-winbind-idmap.c')
-rw-r--r--src/lib/winbind_idmap_sss/libdlopen-test-winbind-idmap.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/lib/winbind_idmap_sss/libdlopen-test-winbind-idmap.c b/src/lib/winbind_idmap_sss/libdlopen-test-winbind-idmap.c
new file mode 100644
index 000000000..94e8719f8
--- /dev/null
+++ b/src/lib/winbind_idmap_sss/libdlopen-test-winbind-idmap.c
@@ -0,0 +1,31 @@
+/*
+ SSSD
+
+ ID-mapping plugin for winbind - helper library for dlopen test
+
+ Authors:
+ Sumit Bose <sbose@redhat.com>
+
+ Copyright (C) 2016 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 "lib/winbind_idmap_sss/winbind_idmap_sss.h"
+
+NTSTATUS smb_register_idmap(int version, const char *name,
+ struct idmap_methods *methods)
+{
+ return NT_STATUS_OK;
+}