summaryrefslogtreecommitdiffstats
path: root/source3/nsswitch/idmap.c
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2007-04-22 10:09:41 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:19:34 -0500
commitda158ad6a23cdee1044d924fb133fc16a8d5fb6b (patch)
tree892624ea9e492218fcc0e0e173d58e3e7d03ec9e /source3/nsswitch/idmap.c
parent026852b47ad99ef507739269a81909d9dfdd3f3e (diff)
downloadsamba-da158ad6a23cdee1044d924fb133fc16a8d5fb6b.tar.gz
samba-da158ad6a23cdee1044d924fb133fc16a8d5fb6b.tar.xz
samba-da158ad6a23cdee1044d924fb133fc16a8d5fb6b.zip
r22447: Patch from Ying Li <ying.li2@hp.com> to default tdb idmap
plugin when neither idmap domains nor idmap backend have been defined. (This used to be commit 2fa12753da22551c9d5e6ca1bea95884e02ef7b2)
Diffstat (limited to 'source3/nsswitch/idmap.c')
-rw-r--r--source3/nsswitch/idmap.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/nsswitch/idmap.c b/source3/nsswitch/idmap.c
index 530e03089d..7a74f744b4 100644
--- a/source3/nsswitch/idmap.c
+++ b/source3/nsswitch/idmap.c
@@ -322,8 +322,16 @@ NTSTATUS idmap_init(void)
*p = '\0';
compat_params = p + 1;
}
+ } else {
+ /* Back compatible: without idmap domains and explicit
+ idmap backend. Taking default idmap backend: tdb */
+
+ compat = 1;
+ compat_backend = talloc_strdup( idmap_ctx, "tdb");
+ compat_params = compat_backend;
}
+
if ( ! dom_list) {
dom_list = idmap_default_domain;
}