On Wednesday, August 3, 2016 10:32, "Corinna Vinschen" <corinna-cyg...@cygwin.com> said: > > In the meantime I prepared my test application. Can you please fetch > the attached source and store it as, e.g., azure-check.c. Then build > and run it like this: > > $ gcc -g -o azure-check azure-check.c -lnetapi32 > $ ./azure-check > > Then run it and paste the complete output into your reply. > > I have an idea for an extension of this testcase, but I think I have > to see the output of this one first.
The output is as below. This was without Run As Administrator - with it the Group 0 Sid changed to S-1-16-12288/High Mandatory Level, which *seems* appropriate.... Unknown+User@Lenovo-PC /cygdrive/c/cygwin64 $ ./azure-check PDom.Name: WORKGROUP ADom.DomainName: Lenovo-PC ADom.DomainSid: S-1-5-21-1836915194-3548948870-2562531131 DsEnumerateDomainTrustsW: 1722 User: Sid: S-1-12-1-2043906341-1249388050-2635137163-399631282 Dom\Name: AzureAD\RussellMora Attributes: 0x00000000 Group 0 Sid: S-1-16-8192 Dom\Name: Mandatory Label\Medium Mandatory Level Attributes: 0x00000060 Group 1 Sid: S-1-1-0 Dom\Name: \Everyone Attributes: 0x00000007 Group 2 Sid: S-1-5-32-544 Dom\Name: BUILTIN\Administrators Attributes: 0x00000010 Group 3 Sid: S-1-5-32-545 Dom\Name: BUILTIN\Users Attributes: 0x00000007 Group 4 Sid: S-1-5-4 Dom\Name: NT AUTHORITY\INTERACTIVE Attributes: 0x00000007 Group 5 Sid: S-1-2-1 Dom\Name: \CONSOLE LOGON Attributes: 0x00000007 Group 6 Sid: S-1-5-11 Dom\Name: NT AUTHORITY\Authenticated Users Attributes: 0x00000007 Group 7 Sid: S-1-5-15 Dom\Name: NT AUTHORITY\This Organization Attributes: 0x00000007 Group 8 Sid: S-1-5-5-0-852920 Dom\Name: NT AUTHORITY\LogonSessionId_0_852920 Attributes: 0xc0000007 Group 9 Sid: S-1-2-0 Dom\Name: \LOCAL Attributes: 0x00000007 Group 10 Sid: S-1-12-1-2741946010-1181797680-2322883994-3292483823 LookupAccountSidW: 1332 Attributes: 0x00000007 Group 11 Sid: S-1-5-64-36 Dom\Name: NT AUTHORITY\Cloud Account Authentication Attributes: 0x00000007 Unknown+User@Lenovo-PC /cygdrive/c/cygwin64 $ HTH! Cheers, Russell -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple