r26233: Pass loadparm context when creating krb5 contexts.
[jelmer/samba4-debian.git] / source / dsdb / samdb / cracknames.c
index c5f1bdaffb2fb502df557e629b21e6b092f8d884..b8581275f5af716c48d3d35b0a69967103a94196 100644 (file)
@@ -358,6 +358,7 @@ WERROR DsCrackNameOneName(struct ldb_context *sam_ctx, TALLOC_CTX *mem_ctx,
        struct smb_krb5_context *smb_krb5_context;
        ret = smb_krb5_init_context(mem_ctx, 
                                    (struct event_context *)ldb_get_opaque(sam_ctx, "EventContext"), 
+                                   (struct loadparm_context *)ldb_get_opaque(sam_ctx, "loadparm"), 
                                    &smb_krb5_context);
                                
        if (ret) {