Good afternoon!

I tried a simple three line hello world program, which tries to get
the SID for Unix_User+1:
bash -c 'getent passwd "Unix_User+1"'
Unix_User+1:*:4278190081:4278190081:U-Unix_User\1,S-1-22-1-1:/:/sbin/nologin

But putting "S-1-22-1-1" into ConvertStringSidToSidA("S-1-22-1-1",
&sid) fails with ERROR_INVALID_SID on Cygwin.

Why? I thought SMB had "S-1-22-1-*" reserved for its usage, and Cygwin
uses Unix_User+1 in it's output.
How can I get ConvertStringSidToSidA("S-1-22-1-1", &sid) working in my program?

Ced
-- 
Cedric Blancher <cedric.blanc...@gmail.com>
[https://plus.google.com/u/0/+CedricBlancher/]
Institute Pasteur

-- 
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

Reply via email to