summaryrefslogtreecommitdiff
path: root/source4/libcli/ndr/ndr_sec.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-11-04 11:16:07 +0000
committerAndrew Tridgell <tridge@samba.org>2003-11-04 11:16:07 +0000
commit41304b3c5791be0a5492844a048784c4ef4acfe9 (patch)
tree117cefc3c6b69d2eb47d9452a7dae01cad7c3886 /source4/libcli/ndr/ndr_sec.c
parent485f930088b524d704bed668d4ef118ca2f31bbe (diff)
downloadsamba-41304b3c5791be0a5492844a048784c4ef4acfe9.tar.gz
samba-41304b3c5791be0a5492844a048784c4ef4acfe9.tar.bz2
samba-41304b3c5791be0a5492844a048784c4ef4acfe9.zip
lsa_EnumSids() now works
(This used to be commit 25a8692fede323b53240192e5d349b39fe0b7342)
Diffstat (limited to 'source4/libcli/ndr/ndr_sec.c')
-rw-r--r--source4/libcli/ndr/ndr_sec.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/source4/libcli/ndr/ndr_sec.c b/source4/libcli/ndr/ndr_sec.c
index 6b83a09d7a..52578089e6 100644
--- a/source4/libcli/ndr/ndr_sec.c
+++ b/source4/libcli/ndr/ndr_sec.c
@@ -137,6 +137,16 @@ NTSTATUS ndr_pull_dom_sid(struct ndr_pull *ndr, struct dom_sid *sid)
}
/*
+ parse a dom_sid2 - this is a dom_sid but with an extra copy of the num_auths field
+*/
+NTSTATUS ndr_pull_dom_sid2(struct ndr_pull *ndr, struct dom_sid *sid)
+{
+ uint32 num_auths;
+ NDR_CHECK(ndr_pull_u32(ndr, &num_auths));
+ return ndr_pull_dom_sid(ndr, sid);
+}
+
+/*
parse a dom_sid offset and structure
*/
NTSTATUS ndr_pull_dom_sid_ofs(struct ndr_pull *ndr, struct dom_sid **sid)