r22969: fix some more places where we could end up with more than one event
[sfrench/samba-autobuild/.git] / source4 / dsdb / samdb / cracknames.c
index eec27c6668812a3839fe26190ed75c44ea6053ee..2e26f1c308da3e2abd0fbe8baa8602ac22dbee56 100644 (file)
@@ -348,7 +348,9 @@ WERROR DsCrackNameOneName(struct ldb_context *sam_ctx, TALLOC_CTX *mem_ctx,
        struct ldb_dn *name_dn = NULL;
 
        struct smb_krb5_context *smb_krb5_context;
-       ret = smb_krb5_init_context(mem_ctx, &smb_krb5_context);
+       ret = smb_krb5_init_context(mem_ctx, 
+                                   ldb_get_opaque(sam_ctx, "EventContext"), 
+                                   &smb_krb5_context);
                                
        if (ret) {
                return WERR_NOMEM;