From: Gerald Carter Date: Sun, 22 Apr 2007 10:09:41 +0000 (+0000) Subject: r22447: Patch from Ying Li to default tdb idmap X-Git-Tag: samba-misc-tags/initial-v3-0-unstable~636 X-Git-Url: http://git.samba.org/samba.git/?p=sfrench%2Fsamba-autobuild%2F.git;a=commitdiff_plain;h=2fa12753da22551c9d5e6ca1bea95884e02ef7b2 r22447: Patch from Ying Li to default tdb idmap plugin when neither idmap domains nor idmap backend have been defined. --- 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; }