auth: Use DBGC_AUTH as DBGC_CLASS for AD DC auth session code.
authorAndrew Bartlett <abartlet@samba.org>
Mon, 21 May 2018 01:58:12 +0000 (13:58 +1200)
committerJeremy Allison <jra@samba.org>
Tue, 22 May 2018 00:42:32 +0000 (02:42 +0200)
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue May 22 02:42:32 CEST 2018 on sn-devel-144

source4/auth/sam.c
source4/auth/session.c
source4/auth/system_session.c
source4/auth/unix_token.c

index fb309f5100e1e80ef6652eb883d52986dcdb205b..9d1fc650142994be1fc96a42d25c39953bacb003 100644 (file)
 #include "param/param.h"
 #include "librpc/gen_ndr/ndr_winbind_c.h"
 
-#define KRBTGT_ATTRS \
+#undef DBGC_CLASS
+#define DBGC_CLASS DBGC_AUTH
+
+#define KRBTGT_ATTRS                           \
        /* required for the krb5 kdc */         \
        "objectClass",                          \
        "sAMAccountName",                       \
index c27d27398bbdbd4906b84b88f3148e039cd3cb73..e324ecfb3b6904e6d9d6ff2774322c7e6827ce25 100644 (file)
@@ -34,6 +34,9 @@
 #include <gssapi/gssapi.h>
 #include "libcli/wbclient/wbclient.h"
 
+#undef DBGC_CLASS
+#define DBGC_CLASS DBGC_AUTH
+
 _PUBLIC_ struct auth_session_info *anonymous_session(TALLOC_CTX *mem_ctx, 
                                            struct loadparm_context *lp_ctx)
 {
@@ -415,5 +418,6 @@ void auth_session_info_debug(int dbg_lev,
                return; 
        }
 
-       security_token_debug(0, dbg_lev, session_info->security_token);
+       security_token_debug(DBGC_AUTH, dbg_lev,
+                            session_info->security_token);
 }
index 4c5290db71a5654b54d051cefffff04c559bca91..1d238ee9c98b4dbd32907acd8694773b24778ee4 100644 (file)
@@ -29,6 +29,8 @@
 #include "auth/session.h"
 #include "auth/system_session_proto.h"
 
+#undef DBGC_CLASS
+#define DBGC_CLASS DBGC_AUTH
 
 /*
   prevent the static system session being freed
index e5eb0aa4590f76b6d44a175c77c6ec2b390973e6..492149b359b56eb103748a7764e3958637d977b8 100644 (file)
@@ -25,6 +25,9 @@
 #include "libcli/wbclient/wbclient.h"
 #include "param/param.h"
 
+#undef DBGC_CLASS
+#define DBGC_CLASS DBGC_AUTH
+
 /*
   form a security_unix_token from the current security_token
 */
@@ -76,7 +79,7 @@ NTSTATUS security_token_to_unix_token(TALLOC_CTX *mem_ctx,
                char *sid_str = dom_sid_string(mem_ctx, ids[0].sid);
                DEBUG(0, ("Unable to convert first SID (%s) in user token to a UID.  Conversion was returned as type %d, full token:\n",
                          sid_str, (int)ids[0].xid.type));
-               security_token_debug(0, 0, token);
+               security_token_debug(DBGC_AUTH, 0, token);
                talloc_free(sid_str);
                return NT_STATUS_INVALID_SID;
        }
@@ -90,7 +93,7 @@ NTSTATUS security_token_to_unix_token(TALLOC_CTX *mem_ctx,
                char *sid_str = dom_sid_string(mem_ctx, ids[1].sid);
                DEBUG(0, ("Unable to convert second SID (%s) in user token to a GID.  Conversion was returned as type %d, full token:\n",
                          sid_str, (int)ids[1].xid.type));
-               security_token_debug(0, 0, token);
+               security_token_debug(DBGC_AUTH, 0, token);
                talloc_free(sid_str);
                return NT_STATUS_INVALID_SID;
        }
@@ -104,7 +107,7 @@ NTSTATUS security_token_to_unix_token(TALLOC_CTX *mem_ctx,
                        char *sid_str = dom_sid_string(mem_ctx, ids[s].sid);
                        DEBUG(0, ("Unable to convert SID (%s) at index %u in user token to a GID.  Conversion was returned as type %d, full token:\n",
                                  sid_str, (unsigned int)s, (int)ids[s].xid.type));
-                       security_token_debug(0, 0, token);
+                       security_token_debug(DBGC_AUTH, 0, token);
                        talloc_free(sid_str);
                        return NT_STATUS_INVALID_SID;
                }