X-Recipient: archive-cygwin@delorie.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=NVrsAHvuqhSutRWFZNb6SjBdZJ1v+uM
	bSGNBxSKUSd2dpLWzX9Xxui3uBNn6rvKDOpYw1v+dV2bD53TYd2RIXnceNs9M9Fl
	pV3aF1Cr9wIa7CkemK9X3gJBj46FXskQdUwgZgBsJvJAY1qyvJNi4iTkJxJY8XZy
	LFsTHuPrz2Bk=
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=mLOkufAUpGz5Ia+54IXq94OAaKU=; b=FWo6d
	ViSC8DbdTdwhabWM06rlbXoPmvqpd70DXGpR8GTbwIjH9tkSd0vVKeWczlJsQT36
	y0mzrThF1Wjux/Fk8Y8IlBoUVFQycFAl+/qngRE2/snvwAXCJy3ZIrSlXvIzoQ/K
	eHVKTM5qCw6O27lbDcd9voVpQdRz4Ybr6sKVWs=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=H*i:sk:1471278, H*f:sk:1471278, HX-Priority:Normal, HImportance:Normal
X-HELO: smtp74.iad3a.emailsrvr.com
X-SMTPDoctor-Processed: csmtpprox beta
X-Sender-Id: rmora@aboutgolf.com
Date: Mon, 15 Aug 2016 12:48:52 -0400 (EDT)
Subject: Re: /dev/ptmx fails with Azure accounts
From: "rmora@aboutgolf.com" <rmora@aboutgolf.com>
To: "rmora@aboutgolf.com" <rmora@aboutgolf.com>
Cc: cygwin@cygwin.com, cygwin@cygwin.com
MIME-Version: 1.0
Content-Type: text/plain;charset=UTF-8
X-Type: plain
In-Reply-To: <1471278569.482829599@apps.rackspace.com>
References: <20160803143207.GB17526@calimero.vinschen.de>   <1470243211.01868925@apps.rackspace.com>   <20160803180012.GC25811@calimero.vinschen.de>   <20160803181649.GD25811@calimero.vinschen.de>   <1470251109.311822327@apps.rackspace.com>   <20160804070058.GA2333@calimero.vinschen.de>   <20160805102751.GK25811@calimero.vinschen.de>   <20160807032711.GC31990@dimstar.local.net>   <20160808070527.GB32150@calimero.vinschen.de>   <20160808114807.GD31990@dimstar.local.net>   <20160808115840.GG32150@calimero.vinschen.de>  <1471278569.482829599@apps.rackspace.com>
X-Auth-ID: rmora@aboutgolf.com
Message-ID: <1471279732.794730680@apps.rackspace.com>
X-IsSubscribed: yes
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id u7FGnFRF004803



On Monday, August 15, 2016 12:29, "rmora@aboutgolf.com" <rmora@aboutgolf.com> said:

> 
> 
> Hi
> 
> Sorry for the delay in getting back to this. Here is the output I get:
> 
> Unknown+User@Lenovo-PC /cygdrive/c/cygwin64
> $ gcc -W azure-check3.c -l Netapi32 -o azure-check3
> azure-check3.c: In function ‘main’:
> azure-check3.c:50:1: warning: ‘status’ may be used uninitialized in
> this function [-Wmaybe-uninitialized]
>  printf ("DsGetDcNameW: %u\n", status);
>  ^
> 
> Unknown+User@Lenovo-PC /cygdrive/c/cygwin64
> $ ./azure-check3
>  Sid: S-1-12-1-2043906341-1249388050-2635137163-399631282
> Dom\Name: AzureAD\RussellMora
> DsGetDcNameW: 0
> NetUserGetInfo(NULL, 3): 2221
> NetUserGetInfo(NULL, 24): 2221
> 
> Unknown+User@Lenovo-PC /cygdrive/c/cygwin64
> $
> 

Oops - I fixed the warning. Now I get this:

Unknown+User@Lenovo-PC /cygdrive/c/cygwin64
$ diff -u azure-check3.c__ORIG  azure-check3.c
--- azure-check3.c__ORIG        2016-08-15 12:48:06.682783600 -0400
+++ azure-check3.c      2016-08-15 12:45:57.266928000 -0400
@@ -42,8 +42,8 @@
        else
                printf ("LookupAccountSidW: %u\n", GetLastError ());

-       ret = DsGetDcNameW (NULL, dom, NULL, NULL, DS_IS_FLAT_NAME | DS_RETURN_DNS_NAME, &pci);
-       if (ret != ERROR_SUCCESS)
+       status = DsGetDcNameW (NULL, dom, NULL, NULL, DS_IS_FLAT_NAME | DS_RETURN_DNS_NAME, &pci);
+       if (status != ERROR_SUCCESS)
        {
                printf ("DsGetDcNameW: %u\n", status);
                pci = NULL;

Unknown+User@Lenovo-PC /cygdrive/c/cygwin64
$ ./azure-check3
 Sid: S-1-12-1-2043906341-1249388050-2635137163-399631282
Dom\Name: AzureAD\RussellMora
DsGetDcNameW: 1355
NetUserGetInfo(NULL, 3): 2221
NetUserGetInfo(NULL, 24): 2221

Unknown+User@Lenovo-PC /cygdrive/c/cygwin64
$



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


