diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2007-12-02 20:56:26 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2007-12-21 05:47:11 +0100 |
commit | 120ecdb5cb7dbd7c650f3e9fbcefb925f695e0f2 (patch) | |
tree | b7fa447f3959f84417d58a0b60ca8bb0c8de17b1 /source4/dsdb/samdb/ldb_modules | |
parent | da0640518f67545df6a1da30c916fbc452d38a39 (diff) | |
download | samba-120ecdb5cb7dbd7c650f3e9fbcefb925f695e0f2.tar.gz samba-120ecdb5cb7dbd7c650f3e9fbcefb925f695e0f2.tar.bz2 samba-120ecdb5cb7dbd7c650f3e9fbcefb925f695e0f2.zip |
r26233: Pass loadparm context when creating krb5 contexts.
(This used to be commit 7780bf285fdfc30f89409d0436bad0d4b6de5cd4)
Diffstat (limited to 'source4/dsdb/samdb/ldb_modules')
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/password_hash.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/password_hash.c b/source4/dsdb/samdb/ldb_modules/password_hash.c index eecec6a55b..529b1aa96f 100644 --- a/source4/dsdb/samdb/ldb_modules/password_hash.c +++ b/source4/dsdb/samdb/ldb_modules/password_hash.c @@ -1432,6 +1432,7 @@ static int password_hash_add_do_add(struct ldb_handle *h) { /* Some operations below require kerberos contexts */ if (smb_krb5_init_context(ac->down_req, ldb_get_opaque(h->module->ldb, "EventContext"), + (struct loadparm_context *)ldb_get_opaque(h->module->ldb, "loadparm"), &smb_krb5_context) != 0) { return LDB_ERR_OPERATIONS_ERROR; } @@ -1759,6 +1760,7 @@ static int password_hash_mod_do_mod(struct ldb_handle *h) { /* Some operations below require kerberos contexts */ if (smb_krb5_init_context(ac->mod_req, ldb_get_opaque(h->module->ldb, "EventContext"), + (struct loadparm_context *)ldb_get_opaque(h->module->ldb, "loadparm"), &smb_krb5_context) != 0) { return LDB_ERR_OPERATIONS_ERROR; } |