summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2007-04-22 10:09:41 +0000
committerGerald Carter <jerry@samba.org>2007-04-22 10:09:41 +0000
commit2bc6fdd9d3379ba4d4d7983e086d2a7be3a86391 (patch)
tree41789923649eb7d824fb6ae4dd8fc5c834665f36
parent76ee22ebfa98d6bbc72a693d93c5a1656d4af791 (diff)
downloadsamba-2bc6fdd9d3379ba4d4d7983e086d2a7be3a86391.tar.gz
samba-2bc6fdd9d3379ba4d4d7983e086d2a7be3a86391.tar.xz
samba-2bc6fdd9d3379ba4d4d7983e086d2a7be3a86391.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.
-rw-r--r--source/nsswitch/idmap.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/nsswitch/idmap.c b/source/nsswitch/idmap.c
index 530e03089d0..7a74f744b46 100644
--- a/source/nsswitch/idmap.c
+++ b/source/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;
}