summaryrefslogtreecommitdiff
path: root/source3/librpc
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-03-07 18:18:35 +0100
committerGünther Deschner <gd@samba.org>2008-03-07 18:31:13 +0100
commit5259a7a808324e7896943d22723b65bb57cfdf60 (patch)
tree2868196aceccea8fcf7002e2623812f16f63876f /source3/librpc
parent9e83c9159ed41954de87dad9f3ce30c1064ddf4e (diff)
downloadsamba-5259a7a808324e7896943d22723b65bb57cfdf60.tar.gz
samba-5259a7a808324e7896943d22723b65bb57cfdf60.tar.bz2
samba-5259a7a808324e7896943d22723b65bb57cfdf60.zip
Enable libnetjoin debugging for now but avoid printing passwords.
The gen_ndr needs proper fixing still. Guenther (This used to be commit 966d7244d7765d285a7026b97e6093fd1f8d83ce)
Diffstat (limited to 'source3/librpc')
-rw-r--r--source3/librpc/gen_ndr/ndr_libnet_join.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/source3/librpc/gen_ndr/ndr_libnet_join.c b/source3/librpc/gen_ndr/ndr_libnet_join.c
index ac8f7ee71d..753859f0ed 100644
--- a/source3/librpc/gen_ndr/ndr_libnet_join.c
+++ b/source3/librpc/gen_ndr/ndr_libnet_join.c
@@ -23,8 +23,13 @@ _PUBLIC_ void ndr_print_libnet_JoinCtx(struct ndr_print *ndr, const char *name,
ndr->depth--;
ndr_print_string(ndr, "account_ou", r->in.account_ou);
ndr_print_string(ndr, "admin_account", r->in.admin_account);
+#ifdef DEBUG_PASSWORD
ndr_print_string(ndr, "admin_password", r->in.admin_password);
ndr_print_string(ndr, "machine_password", r->in.machine_password);
+#else
+ ndr_print_ptr(ndr, "admin_password", r->in.admin_password);
+ ndr_print_ptr(ndr, "machine_password", r->in.machine_password);
+#endif
ndr_print_wkssvc_joinflags(ndr, "join_flags", r->in.join_flags);
ndr_print_string(ndr, "os_version", r->in.os_version);
ndr_print_string(ndr, "os_name", r->in.os_name);
@@ -74,8 +79,13 @@ _PUBLIC_ void ndr_print_libnet_UnjoinCtx(struct ndr_print *ndr, const char *name
ndr_print_string(ndr, "domain_name", r->in.domain_name);
ndr_print_string(ndr, "account_ou", r->in.account_ou);
ndr_print_string(ndr, "admin_account", r->in.admin_account);
+#ifdef DEBUG_PASSWORD
ndr_print_string(ndr, "admin_password", r->in.admin_password);
ndr_print_string(ndr, "machine_password", r->in.machine_password);
+#else
+ ndr_print_ptr(ndr, "admin_password", r->in.admin_password);
+ ndr_print_ptr(ndr, "machine_password", r->in.machine_password);
+#endif
ndr_print_wkssvc_joinflags(ndr, "unjoin_flags", r->in.unjoin_flags);
ndr_print_uint8(ndr, "modify_config", r->in.modify_config);
ndr_print_ptr(ndr, "domain_sid", r->in.domain_sid);