[SCM] Samba Shared Repository - branch v3-3-test updated - release-3-2-0pre2-3279-gd9d0cf6

Günther Deschner gd at samba.org
Thu Jul 17 08:50:05 GMT 2008


The branch, v3-3-test has been updated
       via  d9d0cf6411a29d456735e980f9ac8ad75f3edfbd (commit)
      from  133ea72a996a1eefda1b6351277f415823db55fc (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-3-test


- Log -----------------------------------------------------------------
commit d9d0cf6411a29d456735e980f9ac8ad75f3edfbd
Author: Günther Deschner <gd at samba.org>
Date:   Wed Jul 16 16:42:21 2008 +0200

    netapi: use ConvertSidToStringSid in NetGetGroupInfo query.
    
    Guenther

-----------------------------------------------------------------------

Summary of changes:
 source/lib/netapi/examples/group/group_getinfo.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/lib/netapi/examples/group/group_getinfo.c b/source/lib/netapi/examples/group/group_getinfo.c
index 9a76996..2e5b793 100644
--- a/source/lib/netapi/examples/group/group_getinfo.c
+++ b/source/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;
 	}


-- 
Samba Shared Repository


More information about the samba-cvs mailing list