diff options
author | Günther Deschner <gd@samba.org> | 2008-07-16 16:42:21 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-07-17 10:49:44 +0200 |
commit | 848558026f8c10366db07053714557a9840e8bc9 (patch) | |
tree | 06c2942faf705af756e23aca15c29336d31f4c3e | |
parent | f266bb4cec61a1092f098a91ee58356af35dbf77 (diff) | |
download | samba-848558026f8c10366db07053714557a9840e8bc9.tar.gz samba-848558026f8c10366db07053714557a9840e8bc9.tar.bz2 samba-848558026f8c10366db07053714557a9840e8bc9.zip |
netapi: use ConvertSidToStringSid in NetGetGroupInfo query.
Guenther
(This used to be commit d9d0cf6411a29d456735e980f9ac8ad75f3edfbd)
-rw-r--r-- | source3/lib/netapi/examples/group/group_getinfo.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source3/lib/netapi/examples/group/group_getinfo.c b/source3/lib/netapi/examples/group/group_getinfo.c index 9a76996336..2e5b793905 100644 --- a/source3/lib/netapi/examples/group/group_getinfo.c +++ b/source3/lib/netapi/examples/group/group_getinfo.c @@ -39,6 +39,7 @@ int main(int argc, const char **argv) struct GROUP_INFO_1 *g1; struct GROUP_INFO_2 *g2; struct GROUP_INFO_3 *g3; + char *sid_str = NULL; poptContext pc; int opt; @@ -109,7 +110,11 @@ int main(int argc, const char **argv) g3 = (struct GROUP_INFO_3 *)buffer; printf("name: %s\n", g3->grpi3_name); printf("comment: %s\n", g3->grpi3_comment); -/* printf("group_sid: %p\n", g3->grpi3_group_sid);*/ + if (ConvertSidToStringSid(g3->grpi3_group_sid, + &sid_str)) { + printf("group_sid: %s\n", sid_str); + free(sid_str); + } printf("attributes: %d\n", g3->grpi3_attributes); break; } |