From 72b4c8d3127f232434d985543e6f9d812cc9adea Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Sun, 22 Apr 2007 10:10:29 +0000 Subject: r22448: grab idmap compat patch from 3.0.25 (will recur 3.0.25rc2 for this) --- WHATSNEW.txt | 5 +++++ source/nsswitch/idmap.c | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/WHATSNEW.txt b/WHATSNEW.txt index 406d26cb85b..dfbff6be5a7 100644 --- a/WHATSNEW.txt +++ b/WHATSNEW.txt @@ -163,6 +163,11 @@ o Herb Lewis * Allow profiling level to be set on startup. +o Ying Li + * Use the default tdb idmap plugin when neither idmap domains + nor idmap backend have been defined. + + o Jason Mader * Various compile warning fixes. * Initial patch set for strptime() in libreplace. 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; } -- cgit v1.2.1