X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:subject:from:to:cc:mime-version :content-type:content-transfer-encoding:in-reply-to:references :message-id; q=dns; s=default; b=Y9t/vj4FxhUyCJqSHE29BoOF4NzRfxv RdJfvTL2MewARIx4+iZ6i9wNpnQAzsxnZ1soK7r/lNEVFz7JxDp9QE9Hh9o9ip7c e+a3Mwp/TS3xoheP3UmxhxoZgX2rkgUjw9LDMLfTMhnIGvH62cX3D0D4ANNT1pFc Hz6RKyugIEWA= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:subject:from:to:cc:mime-version :content-type:content-transfer-encoding:in-reply-to:references :message-id; s=default; bh=z3iwD/vd2FReXHC3izi48lPeohk=; b=L5p0i z/FGcGUMDv/90m+KfHZ3c27T5tcvUbFGcFJH32Iu8g9tfhGTBDoA4/xNkPM8qE00 3INsiVdWYKMar9LWlFYQs5mIZ5YuEcHSxG6OpOykMo9FI0PANJjqaOO3X5I50pqQ w3ZqfHSQWv1s4QbCZAzStVXXbeQm7N1CBb7UMA= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.8 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=Cloud, cloud, Authentication, s156436 X-HELO: smtp82.iad3a.emailsrvr.com X-SMTPDoctor-Processed: csmtpprox beta X-Sender-Id: rmora AT aboutgolf DOT com Date: Wed, 3 Aug 2016 12:53:31 -0400 (EDT) Subject: Re: /dev/ptmx fails with Azure accounts From: "rmora AT aboutgolf DOT com" To: cygwin AT cygwin DOT com Cc: cygwin AT cygwin DOT com MIME-Version: 1.0 Content-Type: text/plain;charset=UTF-8 X-Type: plain In-Reply-To: <20160803143207.GB17526@calimero.vinschen.de> References: <1470156870 DOT 684316691 AT apps DOT rackspace DOT com> <20160803143207 DOT GB17526 AT calimero DOT vinschen DOT de> X-Auth-ID: rmora AT aboutgolf DOT com Message-ID: <1470243211.01868925@apps.rackspace.com> X-IsSubscribed: yes Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id u73Grt8W012618 On Wednesday, August 3, 2016 10:32, "Corinna Vinschen" 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 AT 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 AT 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