summaryrefslogtreecommitdiff
path: root/source4/kdc
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2005-09-28 02:22:31 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:39:04 -0500
commit81097e20e71c3ba928cfe7764f3238352fef145f (patch)
tree44c7a03a7cb00742a715c0e15fc7b322aa0bff13 /source4/kdc
parent8407a1a8665e188d9dc6774ce1535802e4e3cb29 (diff)
downloadsamba-81097e20e71c3ba928cfe7764f3238352fef145f.tar.gz
samba-81097e20e71c3ba928cfe7764f3238352fef145f.tar.bz2
samba-81097e20e71c3ba928cfe7764f3238352fef145f.zip
r10562: Ensure we initalise the error table with hdb errors. This ensures we
get good text error strings. Andrew Bartlett (This used to be commit 0600202067c00dd5d5d8be2d6559f66b46108f07)
Diffstat (limited to 'source4/kdc')
-rw-r--r--source4/kdc/kdc.c2
-rw-r--r--source4/kdc/kdc.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/source4/kdc/kdc.c b/source4/kdc/kdc.c
index f011c39a3c..a0fc6747b8 100644
--- a/source4/kdc/kdc.c
+++ b/source4/kdc/kdc.c
@@ -271,6 +271,8 @@ static void kdc_task_init(struct task_server *task)
return;
}
+ krb5_add_et_list(kdc->smb_krb5_context->krb5_context, initialize_hdb_error_table_r);
+
kdc->config->logf = kdc->smb_krb5_context->logf;
kdc->config->db = talloc(kdc->config, struct HDB *);
if (!kdc->config->db) {
diff --git a/source4/kdc/kdc.h b/source4/kdc/kdc.h
index 2965adc8d2..0ff995c2a9 100644
--- a/source4/kdc/kdc.h
+++ b/source4/kdc/kdc.h
@@ -24,6 +24,7 @@
#include "system/kerberos.h"
#include "auth/kerberos/kerberos.h"
#include "heimdal/kdc/kdc.h"
+#include "heimdal/lib/hdb/hdb.h"
#include "kdc/pac-glue.h"
krb5_error_code hdb_ldb_create(TALLOC_CTX *mem_ctx,