RE: [EXTERNAL] Re: Win32 account SID lookup if user and group have the same name?

2024-02-13 Thread Lavrentiev, Anton (NIH/NLM/NCBI) [C] via Cygwin
> It's the same SID and it's your user SID. There can't be a group with > the same name as a user account in the same user DB. Each account in > the local domain or in an AD domain has to have a unique account name. Exactly! Which is why we use "namegrp" (an established convention) for Windows

Re: Win32 account SID lookup if user and group have the same name?

2024-02-13 Thread Corinna Vinschen via Cygwin
On Feb 13 02:12, Dan Shelton via Cygwin wrote: > 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

Win32 account SID lookup if user and group have the same name?

2024-02-12 Thread Dan Shelton via Cygwin
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