summaryrefslogtreecommitdiff
path: root/source3/librpc/gen_ndr/srv_unixinfo.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-09-19 22:39:15 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:00:48 -0500
commite3068ef054b6c500e9d9be16ffebda5cb2402f3a (patch)
tree94dc77a7363146518073d8e5712cfe3e15969c8b /source3/librpc/gen_ndr/srv_unixinfo.c
parent8c79b4cbc152dd4df11d3916739bc851b6db2e86 (diff)
downloadsamba-e3068ef054b6c500e9d9be16ffebda5cb2402f3a.tar.gz
samba-e3068ef054b6c500e9d9be16ffebda5cb2402f3a.tar.bz2
samba-e3068ef054b6c500e9d9be16ffebda5cb2402f3a.zip
r18692: Dump debug data when DEBUGLEVEL >= 10
(This used to be commit 503d1a27d5838718355fdd37968c3670f53b1cd7)
Diffstat (limited to 'source3/librpc/gen_ndr/srv_unixinfo.c')
-rw-r--r--source3/librpc/gen_ndr/srv_unixinfo.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/source3/librpc/gen_ndr/srv_unixinfo.c b/source3/librpc/gen_ndr/srv_unixinfo.c
index 31578ee1d1..2195e7964f 100644
--- a/source3/librpc/gen_ndr/srv_unixinfo.c
+++ b/source3/librpc/gen_ndr/srv_unixinfo.c
@@ -31,6 +31,9 @@ static BOOL api_unixinfo_SidToUid(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(unixinfo_SidToUid, &r);
+
ZERO_STRUCT(r.out);
r.out.uid = talloc_size(mem_ctx, sizeof(*r.out.uid));
if (r.out.uid == NULL) {
@@ -40,6 +43,9 @@ static BOOL api_unixinfo_SidToUid(pipes_struct *p)
r.out.result = _unixinfo_SidToUid(p, r.in.sid, r.out.uid);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(unixinfo_SidToUid, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -88,6 +94,9 @@ static BOOL api_unixinfo_UidToSid(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(unixinfo_UidToSid, &r);
+
ZERO_STRUCT(r.out);
r.out.sid = talloc_size(mem_ctx, sizeof(*r.out.sid));
if (r.out.sid == NULL) {
@@ -97,6 +106,9 @@ static BOOL api_unixinfo_UidToSid(pipes_struct *p)
r.out.result = _unixinfo_UidToSid(p, r.in.uid, r.out.sid);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(unixinfo_UidToSid, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -145,6 +157,9 @@ static BOOL api_unixinfo_SidToGid(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(unixinfo_SidToGid, &r);
+
ZERO_STRUCT(r.out);
r.out.gid = talloc_size(mem_ctx, sizeof(*r.out.gid));
if (r.out.gid == NULL) {
@@ -154,6 +169,9 @@ static BOOL api_unixinfo_SidToGid(pipes_struct *p)
r.out.result = _unixinfo_SidToGid(p, r.in.sid, r.out.gid);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(unixinfo_SidToGid, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -202,6 +220,9 @@ static BOOL api_unixinfo_GidToSid(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(unixinfo_GidToSid, &r);
+
ZERO_STRUCT(r.out);
r.out.sid = talloc_size(mem_ctx, sizeof(*r.out.sid));
if (r.out.sid == NULL) {
@@ -211,6 +232,9 @@ static BOOL api_unixinfo_GidToSid(pipes_struct *p)
r.out.result = _unixinfo_GidToSid(p, r.in.gid, r.out.sid);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(unixinfo_GidToSid, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -259,6 +283,9 @@ static BOOL api_unixinfo_GetPWUid(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(unixinfo_GetPWUid, &r);
+
ZERO_STRUCT(r.out);
r.out.count = r.in.count;
r.out.infos = talloc_array_size(mem_ctx, sizeof(*r.out.infos), *r.in.count);
@@ -269,6 +296,9 @@ static BOOL api_unixinfo_GetPWUid(pipes_struct *p)
r.out.result = _unixinfo_GetPWUid(p, r.in.count, r.in.uids, r.out.infos);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(unixinfo_GetPWUid, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);