diff options
author | Volker Lendecke <vl@samba.org> | 2010-01-23 13:17:28 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-01-23 14:35:37 +0100 |
commit | 3e1a1616ec2b51993e988e43ecf0c0f78b1607e5 (patch) | |
tree | 2931ccc2ae65428d44fb999e87b8ab4b826d8aa4 /source3/utils | |
parent | 8905b599b467f0595cf5874b7e36d9a650f8544a (diff) | |
download | samba-3e1a1616ec2b51993e988e43ecf0c0f78b1607e5.tar.gz samba-3e1a1616ec2b51993e988e43ecf0c0f78b1607e5.tar.bz2 samba-3e1a1616ec2b51993e988e43ecf0c0f78b1607e5.zip |
s3: Use global_sid_Builtin in net_groupmap_memberships
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/net_groupmap.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/source3/utils/net_groupmap.c b/source3/utils/net_groupmap.c index 94576d362d..b39a52ed02 100644 --- a/source3/utils/net_groupmap.c +++ b/source3/utils/net_groupmap.c @@ -813,7 +813,7 @@ static bool print_alias_memberships(TALLOC_CTX *mem_ctx, static int net_groupmap_memberships(struct net_context *c, int argc, const char **argv) { TALLOC_CTX *mem_ctx; - DOM_SID *domain_sid, *builtin_sid, member; + DOM_SID *domain_sid, member; if ( (argc != 1) || c->display_usage || @@ -831,14 +831,13 @@ static int net_groupmap_memberships(struct net_context *c, int argc, const char } domain_sid = get_global_sam_sid(); - builtin_sid = string_sid_talloc(mem_ctx, "S-1-5-32"); - if ((domain_sid == NULL) || (builtin_sid == NULL)) { + if (domain_sid == NULL) { d_fprintf(stderr, _("Could not get domain sid\n")); return -1; } if (!print_alias_memberships(mem_ctx, domain_sid, &member) || - !print_alias_memberships(mem_ctx, builtin_sid, &member)) + !print_alias_memberships(mem_ctx, &global_sid_Builtin, &member)) return -1; talloc_destroy(mem_ctx); |