]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
r22771: One liner fix for idmap_ldap
authorSimo Sorce <idra@samba.org>
Wed, 9 May 2007 21:38:41 +0000 (21:38 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:21:56 +0000 (12:21 -0500)
Fixes the strange behavior we were seeing about idmap_ldap creating
a new connection for each query.

Jerry we need this in for 3.0.25

source/nsswitch/idmap_ldap.c

index 45d2b344afa7fb7660cc92948ce1fad6e40a2ca4..7fdf16beaaefe9aec7185fe5572222770c2cf59d 100644 (file)
@@ -821,6 +821,7 @@ static NTSTATUS idmap_ldap_db_init(struct idmap_domain *dom)
        talloc_set_destructor(ctx, idmap_ldap_close_destructor);
 
        dom->private_data = ctx;
+       dom->initialized = True;
 
        talloc_free(config_option);
        return NT_STATUS_OK;