]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:rpc_server: Only dump passwords in developer builds
authorAndreas Schneider <asn@samba.org>
Tue, 16 Jul 2019 14:13:17 +0000 (16:13 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 26 Jul 2019 03:05:01 +0000 (03:05 +0000)
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): Fri Jul 26 03:05:01 UTC 2019 on sn-devel-184

source3/rpc_server/samr/srv_samr_nt.c

index ad1d1853bda0599593984db738d29efa96a72e10..87214b2899ede21f2abc888b87c0f79ada51a367 100644 (file)
@@ -5198,7 +5198,9 @@ NTSTATUS _samr_SetUserInfo(struct pipes_struct *p,
                                break;
                        }
 
+#ifdef DEBUG_PASSWORD
                        dump_data(100, info->info23.password.data, 516);
+#endif
 
                        status = set_user_info_23(p->mem_ctx,
                                                  &info->info23,
@@ -5219,7 +5221,9 @@ NTSTATUS _samr_SetUserInfo(struct pipes_struct *p,
                                break;
                        }
 
+#ifdef DEBUG_PASSWORD
                        dump_data(100, info->info24.password.data, 516);
+#endif
 
                        status = set_user_info_24(p->mem_ctx,
                                                  rhost,
@@ -5237,7 +5241,9 @@ NTSTATUS _samr_SetUserInfo(struct pipes_struct *p,
                                break;
                        }
 
+#ifdef DEBUG_PASSWORD
                        dump_data(100, info->info25.password.data, 532);
+#endif
 
                        status = set_user_info_25(p->mem_ctx,
                                                  rhost,
@@ -5255,7 +5261,9 @@ NTSTATUS _samr_SetUserInfo(struct pipes_struct *p,
                                break;
                        }
 
+#ifdef DEBUG_PASSWORD
                        dump_data(100, info->info26.password.data, 516);
+#endif
 
                        status = set_user_info_26(p->mem_ctx,
                                                  rhost,