From da158ad6a23cdee1044d924fb133fc16a8d5fb6b Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Sun, 22 Apr 2007 10:09:41 +0000 Subject: r22447: Patch from Ying Li to default tdb idmap plugin when neither idmap domains nor idmap backend have been defined. (This used to be commit 2fa12753da22551c9d5e6ca1bea95884e02ef7b2) --- source3/nsswitch/idmap.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'source3/nsswitch/idmap.c') 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; } -- cgit