diff options
author | Simo Sorce <idra@samba.org> | 2010-01-28 00:08:36 -0500 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2010-01-28 19:33:34 -0500 |
commit | c6865af4450432bec3f5383d6c815934ac89d434 (patch) | |
tree | c6c811678a06090d1ecb39aba4405d8445a4d1fc /source4/kdc/kpasswdd.c | |
parent | f387ed88e8b5b32eb121724d99d73d8ce55e745e (diff) | |
download | samba-c6865af4450432bec3f5383d6c815934ac89d434.tar.gz samba-c6865af4450432bec3f5383d6c815934ac89d434.tar.bz2 samba-c6865af4450432bec3f5383d6c815934ac89d434.zip |
s4:kdc Use better db context structure
This allows to use a common structure not tied to hdb_samba4
Also allows to avoid many casts within hdb_samba4 functions
This is the first step to abstract samba kdc databse functions
so they can be used by the MIT forthcoming plugin.
Diffstat (limited to 'source4/kdc/kpasswdd.c')
-rw-r--r-- | source4/kdc/kpasswdd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/kdc/kpasswdd.c b/source4/kdc/kpasswdd.c index 8406887dad..8009f9c06a 100644 --- a/source4/kdc/kpasswdd.c +++ b/source4/kdc/kpasswdd.c @@ -482,7 +482,7 @@ bool kpasswdd_process(struct kdc_server *kdc, cli_credentials_set_krb5_context(server_credentials, kdc->smb_krb5_context); cli_credentials_set_conf(server_credentials, kdc->task->lp_ctx); - keytab_name = talloc_asprintf(server_credentials, "HDB:samba4&%p", kdc->hdb_samba4_context); + keytab_name = talloc_asprintf(server_credentials, "HDB:samba4&%p", kdc->base_ctx); cli_credentials_set_username(server_credentials, "kadmin/changepw", CRED_SPECIFIED); ret = cli_credentials_set_keytab_name(server_credentials, kdc->task->event_ctx, kdc->task->lp_ctx, keytab_name, CRED_SPECIFIED); |