1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

s4:kdc: Set Kerberos debug class for all KDC files

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Mon Sep 12 03:27:55 UTC 2022 on sn-devel-184
This commit is contained in:
Andreas Schneider 2022-09-09 12:32:57 +02:00 committed by Andrew Bartlett
parent 534b88dea2
commit 66289ab678
16 changed files with 47 additions and 0 deletions

View File

@ -41,6 +41,9 @@
#include "librpc/gen_ndr/ndr_irpc_c.h"
#include "lib/messaging/irpc.h"
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_KERBEROS
#undef strcasecmp
#undef strncasecmp

View File

@ -48,6 +48,9 @@
#include "hdb.h"
#include <kdc-audit.h>
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_KERBEROS
static krb5_error_code hdb_samba4_open(krb5_context context, HDB *db, int flags, mode_t mode)
{
if (db->hdb_master_key_set) {

View File

@ -31,6 +31,9 @@
#include "auth/kerberos/pac_utils.h"
#include "kdc/kdc-glue.h"
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_KERBEROS
int kdc_check_pac(krb5_context context,
DATA_BLOB srv_sig,
struct PAC_SIGNATURE_DATA *kdc_sig,

View File

@ -40,6 +40,9 @@
#include <kdc.h>
#include <hdb.h>
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_KERBEROS
NTSTATUS server_service_kdc_init(TALLOC_CTX *);
extern struct krb5plugin_kdc_ftable kdc_plugin_table;

View File

@ -33,6 +33,8 @@
#include "libcli/composite/composite.h"
#include "libcli/resolve/resolve.h"
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_KERBEROS
/*
get a list of our replication partners from repsFrom, returning it in *proxy_list

View File

@ -30,6 +30,9 @@
#include "kdc/kdc-proxy.h"
#include "lib/stream/packet.h"
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_KERBEROS
/*
* State of an open tcp connection
*/

View File

@ -27,6 +27,9 @@
#include "auth/auth.h"
#include "kdc/kpasswd-helper.h"
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_KERBEROS
bool kpasswd_make_error_reply(TALLOC_CTX *mem_ctx,
krb5_error_code error_code,
const char *error_string,

View File

@ -30,6 +30,9 @@
#include "kdc/kpasswd-service.h"
#include "kdc/kpasswd-helper.h"
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_KERBEROS
static krb5_error_code kpasswd_change_password(struct kdc_server *kdc,
TALLOC_CTX *mem_ctx,
const struct gensec_security *gensec_security,

View File

@ -31,6 +31,9 @@
#include "kdc/kpasswd-helper.h"
#include "../lib/util/asn1.h"
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_KERBEROS
#define RFC3244_VERSION 0xff80
krb5_error_code decode_krb5_setpw_req(const krb5_data *code,

View File

@ -31,6 +31,9 @@
#include "kdc/kpasswd-helper.h"
#include "param/param.h"
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_KERBEROS
#define HEADER_LEN 6
#ifndef RFC3244_VERSION
#define RFC3244_VERSION 0xff80

View File

@ -28,6 +28,9 @@
#include "auth/auth.h"
#include "kdc/kpasswd_glue.h"
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_KERBEROS
/*
A user password change

View File

@ -37,6 +37,9 @@
#include "sdb.h"
#include "mit_kdc_irpc.h"
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_KERBEROS
struct mit_kdc_irpc_context {
struct task_server *task;
krb5_context krb5_context;

View File

@ -27,6 +27,9 @@
#include "samba_kdc.h"
#include "lib/krb5_wrap/krb5_samba.h"
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_KERBEROS
void sdb_key_free(struct sdb_key *k)
{
if (k == NULL) {

View File

@ -28,6 +28,9 @@
#include "lib/krb5_wrap/krb5_samba.h"
#include "kdc/samba_kdc.h"
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_KERBEROS
static void sdb_flags_to_hdb_flags(const struct SDBFlags *s,
HDBFlags *h)
{

View File

@ -28,6 +28,9 @@
#include "kdc/samba_kdc.h"
#include "lib/krb5_wrap/krb5_samba.h"
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_KERBEROS
static int SDBFlags_to_kflags(const struct SDBFlags *s,
krb5_flags *k)
{

View File

@ -30,6 +30,9 @@
#include "librpc/gen_ndr/auth.h"
#include <krb5_locl.h>
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_KERBEROS
static bool samba_wdc_is_s4u2self_req(astgs_request_t r)
{
krb5_kdc_configuration *config = kdc_request_get_config((kdc_request_t)r);