diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-02-21 15:45:32 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-02-21 15:45:32 +0100 |
commit | 263a77c5618daddb0c1e4f0ad0a922bca55faf0d (patch) | |
tree | 117a612740901f6822d346d6832e0e1fb33d4abc /source4/kdc | |
parent | ede79ae482b16c3cea65d3019bc1a68f07354e89 (diff) | |
download | samba-263a77c5618daddb0c1e4f0ad0a922bca55faf0d.tar.gz samba-263a77c5618daddb0c1e4f0ad0a922bca55faf0d.tar.bz2 samba-263a77c5618daddb0c1e4f0ad0a922bca55faf0d.zip |
Remove more uses of global_loadparm.
(This used to be commit a1715b1f48ba44bd94844418cc9299649aaf1a5e)
Diffstat (limited to 'source4/kdc')
-rw-r--r-- | source4/kdc/hdb-ldb.c | 1 | ||||
-rw-r--r-- | source4/kdc/kdc.h | 1 | ||||
-rw-r--r-- | source4/kdc/pac-glue.c | 2 |
3 files changed, 3 insertions, 1 deletions
diff --git a/source4/kdc/hdb-ldb.c b/source4/kdc/hdb-ldb.c index 2143d26cde..ff226e5b46 100644 --- a/source4/kdc/hdb-ldb.c +++ b/source4/kdc/hdb-ldb.c @@ -431,6 +431,7 @@ static krb5_error_code LDB_message2entry(krb5_context context, HDB *db, private->entry_ex = entry_ex; private->iconv_convenience = lp_iconv_convenience(lp_ctx); + private->netbios_name = lp_netbios_name(lp_ctx); talloc_set_destructor(private, hdb_ldb_destrutor); diff --git a/source4/kdc/kdc.h b/source4/kdc/kdc.h index 78276183c2..3a1f9bd34e 100644 --- a/source4/kdc/kdc.h +++ b/source4/kdc/kdc.h @@ -55,4 +55,5 @@ struct hdb_ldb_private { struct ldb_message *msg; struct ldb_message *realm_ref_msg; hdb_entry_ex *entry_ex; + const char *netbios_name; }; diff --git a/source4/kdc/pac-glue.c b/source4/kdc/pac-glue.c index cf55618a06..a99cf6ded8 100644 --- a/source4/kdc/pac-glue.c +++ b/source4/kdc/pac-glue.c @@ -127,7 +127,7 @@ krb5_error_code samba_kdc_get_pac(void *priv, } nt_status = authsam_make_server_info(mem_ctx, private->samdb, - lp_netbios_name(global_loadparm), + private->netbios_name, private->msg, private->realm_ref_msg, data_blob(NULL, 0), |