r10562: Ensure we initalise the error table with hdb errors. This ensures we
authorAndrew Bartlett <abartlet@samba.org>
Wed, 28 Sep 2005 02:22:31 +0000 (02:22 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:39:04 +0000 (13:39 -0500)
get good text error strings.

Andrew Bartlett
(This used to be commit 0600202067c00dd5d5d8be2d6559f66b46108f07)

source4/kdc/kdc.c
source4/kdc/kdc.h

index f011c39a3c1170eb7dcf811e1b27b075b82e03c8..a0fc6747b89ab71792720e63625fc92ca6132ad5 100644 (file)
@@ -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) {
index 2965adc8d22674f265c9ef3d5236f5bfc270febe..0ff995c2a9dfe5641606a9b7c8a01e376606db56 100644 (file)
@@ -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,