One liner fix for idmap_ldap
authoridra <idra@0c0555d6-39d7-0310-84fc-f1cc0bd64818>
Wed, 9 May 2007 21:38:41 +0000 (21:38 +0000)
committeridra <idra@0c0555d6-39d7-0310-84fc-f1cc0bd64818>
Wed, 9 May 2007 21:38:41 +0000 (21:38 +0000)
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

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@22771 0c0555d6-39d7-0310-84fc-f1cc0bd64818

source/nsswitch/idmap_ldap.c

index 45d2b34..7fdf16b 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;