delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2024/02/12/20:13:43

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 494303858C2F
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1707786821;
bh=Zk88mxqTOFJ/MZKkjCk5WZfh7KAI6Efmo7m5m84Iiuw=;
h=Date:Subject:To:List-Id:List-Unsubscribe:List-Archive:List-Post:
List-Help:List-Subscribe:From:Reply-To:From;
b=oWLrr23VPYn1EKj/vKDnPQFlKjbTYri2NEwOvb4at4S6BXSTWBERNoc6V4/s1uMsD
zr/GeqhscjBBvvCE8XxGJyy5pDoxET1bfw6cWm8dprmukwww/aQ0y4x+rN1Lq119v+
Cm7AF7Pvja32Zal6STn9a/IxAQx4n3jmNq+u42cE=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 00F8D3858D20
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 00F8D3858D20
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707786800; cv=none;
b=hybk7hEqnAPBRktRNrPSgP29qv0bg00sSFm1NLNaUlF0ypzz+YbK6Zy1o5uhbDVa75XS3q48X0OMUCT1zljJG48i/iisgq2SksQ3UOXi+ou84cHfn7xFj0/OAJfUQmxxz9MxPmwVPAW9YGAaPn2OQCwzkscdeatvPRRD8ImNGig=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1707786800; c=relaxed/simple;
bh=bi8rlHYXfYOPw+1wP0B96GW0VhW/qATZravvLBDXjGA=;
h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To;
b=ZE/5n6sr0iK9VkUvCGxKulDz10uzozX42qSMbfXZoy2k6m/pjWflqbneWZ2qtufdosvCuk42hRHJR5tQZNecCsEnP6im9L8n0AkbuBMDs2ENy0GBZ8IHmzLXbtp6JOnaBtIRyRgGSV2VsI0IeOdk6TZV6Zym0kghX7j6ABK4C9M=
ARC-Authentication-Results: i=1; server2.sourceware.org
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1707786796; x=1708391596;
h=to:subject:message-id:date:from:mime-version:x-gm-message-state
:from:to:cc:subject:date:message-id:reply-to;
bh=huARrCt/VDAFC9UiFV8UCQ0gFKKjwt+yo5jrrqn2BTk=;
b=jZiDV/wqyQHuMZ1huDxkvs4/vz1atL1aXHId5J8Mdhy3Eh4/YAOGxHJ0iR6Ic0p74X
4h11wlZKGoYksQXhzbonqEOSulRS5r+NlpULE5WMDQ9pwkuAWemu9DAXZxkT6CikiDfy
ARm7/3jvpZaFenvTQIn11ZHk3XgGCURjZ0M8qqcSGZfrxIGgdEmJ3Gfyly/9VDxKorpA
8EBpNTVnCdMoOVfIOSIHAjtrJ3NX2Lv79qyIoJCIhOREfV135D5ZtGk/GZwn7BKz4aZa
vWnr/vXs8ABWp4ODPYVGXu40celWFGKsi0+WGDTN7XnUXLaSMm0sPJEdDE4KwR3Bhwn5
TZmg==
X-Gm-Message-State: AOJu0YxVkx+2aJ59YrBV3UBdXrelFGizs2OSwhLsBMVTkk3hfVYAjVZh
mLIi9EsE+VTri995RlkSmYV5St2/ltYOytHy24DjfGfmeB5iEWBPZQMyI4rE34q2DpVqGl/zY1C
yEcecsIZ7sIE4WaNttwBfKBnVqTmQNi7BRb6Kyg==
X-Google-Smtp-Source: AGHT+IHJJIiDYseoUwZ6VoGy5lnyudv7LTIDD/aS4qkkvkRHASmVwiQw+hAduTNZovN+lxQXHkIo+C+gp5X9uKGjVtE=
X-Received: by 2002:a05:6512:230c:b0:511:69c0:5c31 with SMTP id
o12-20020a056512230c00b0051169c05c31mr6077886lfu.44.1707786795755; Mon, 12
Feb 2024 17:13:15 -0800 (PST)
MIME-Version: 1.0
Date: Tue, 13 Feb 2024 02:12:48 +0100
Message-ID: <CAAvCNcCpSW7VoBKaqfkFKpP2d+537ezXCkeSvp-R7pfNXz4kuw@mail.gmail.com>
Subject: Win32 account SID lookup if user and group have the same name?
To: cygwin AT cygwin DOT com
X-Spam-Status: No, score=0.4 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,
SPF_HELO_NONE, SPF_PASS, TXREP,
T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Dan Shelton via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Dan Shelton <dan DOT f DOT shelton AT gmail DOT com>
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

Hello!

How can I get the SID for either user XOR group if both have the same
name? Remember Cygwin, as Unix and Linux, allow that a user "danfsh"
can have his own group "danfsh". That works fine there, but on Win32
there is only LookupAccountSidA() which has no way to distinguish
whether you want a user SID or a group SID.

How can I get the SID for group "danfsh", or the SID for user "danfsh"?

Dan
-- 
Dan Shelton - Cluster Specialist Win/Lin/Bsd

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019