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:mime-version:in-reply-to:references:date
	:message-id:subject:from:to:content-type; q=dns; s=default; b=kg
	tbm3V5kqB2dlg2Em5A/0OKuUbL7ayu8CKWXN3+TediQtqGpuWzZ8mZ3i4pw8l/6B
	QduerzcOjl6OvKBaJnvO5E/FEFBzHOK/6a/lhJnG5Pd1Elh1LmnCDxOMXy8lsfOX
	rw0mINAx3QSUaiwUJ6knkdsYfI11jgQzeS0VlXLRg=
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:mime-version:in-reply-to:references:date
	:message-id:subject:from:to:content-type; s=default; bh=wieOAONV
	W4cuTOy9x9w7xVGCrLA=; b=XivYahCi39WMtaVA0mCZki0ACnE2ifL2N9mGi6Jk
	UUxuuoTQbH1kAmAFaENTX1jzrYJH64xnFNCuSzfj1ify8MowSOTdhdh6gPe3Ak4V
	uW5cNRgCfQI87SuZmBiWVur1vw4de/WCwjwgKHIFxoa5Ue4pTqpySuISDtdhZNwU
	Mzc=
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.7 required=5.0 tests=AWL,BAYES_40,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=Medium, cloud, logon, Cloud
X-HELO: mail-vk0-f51.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=1e100.net; s=20130820;        h=x-gm-message-state:mime-version:in-reply-to:references:date         :message-id:subject:from:to:content-type;        bh=ML+S6Mn1d6eICu21sJDqeTkwb52maTIJ2Lr56iPn9XA=;        b=GfUSggvRVn/IkIzMpnAnRA03JCy2NH1NUHYJsViEUpDeacjxs9nSMN4Az86luwyisR         rmk4sS3Pb0btiJQAVxL27SVl3eWVoyzPp8howFu4trkLzyvfywiCZYxz+eAz11t44ns8         ls9G54H3aQCYd0rRjRB4P2nNBMl88HGbbWijPoBl45HAXy0ZmqF+/Pmk9ALaTIYyHUn+         pMTZGAxrxuk1nREL+PNYrlOD0aDRhEzulWxC5SgSY8I9FTqv4QQno1ubhYIxYtWQHehn         cEAZ/wQsAwJRqmVj4HbaFv9t4GkAPZ2KgxuGGTiR/tBQdagjexjUYAQ1sGsikQmeV856         6vag==
X-Gm-Message-State: AG10YOR+gP71g8RwmdYDE+zO9BY+nX+LADKsjzbTbgXT/IuLpEOphOzfznlz+p3uVmPLf+o4Li6i3UuoLvRcjg==
MIME-Version: 1.0
X-Received: by 10.31.151.75 with SMTP id z72mr11008313vkd.104.1454711475246; Fri, 05 Feb 2016 14:31:15 -0800 (PST)
In-Reply-To: <CAKqFR_WRVAcA6A6mUXeWZsFS51ASrh5nUQxO=dMqD2e0HnOTqw@mail.gmail.com>
References: <CAKqFR_WRVAcA6A6mUXeWZsFS51ASrh5nUQxO=dMqD2e0HnOTqw@mail.gmail.com>
Date: Fri, 5 Feb 2016 17:31:15 -0500
Message-ID: <CAKqFR_U9JuqFOKNE1-pkg-_16ks8=tqONP5=QYsEGbxQ-bkjdg@mail.gmail.com>
Subject: Re: Unknown+user issues using cygwin under an Azure AD "domain" account on Windows 10.1511?
From: Russell Mora <rd.mora@gmail.com>
To: cygwin@cygwin.com
Content-Type: text/plain; charset=UTF-8

Finally occurred to me to run whoami under strace - I saw this which
was of interest:

========
 2706   10005 [main] whoami 13636 pwdgrp::fetch_account_from_windows:
Unknown domain AzureAD
--- Process 13636 loaded C:\Windows\System32\netapi32.dll at 00007FFAD6B50000
--- Process 13636 loaded C:\Windows\System32\samcli.dll at 00007FFACDD40000
--- Process 13636 loaded C:\Windows\System32\samlib.dll at 00007FFAD3D50000
 2790   12795 [main] whoami 13636 pwdgrp::fetch_account_from_windows:
line: <Medium Mandatory Level:S-1-16-8192:401408:>
--- Process 13636 loaded C:\Windows\System32\netutils.dll at 00007FFAD5280000
 1086   13881 [main] whoami 13636 pwdgrp::fetch_account_from_windows:
line: <Users:S-1-5-32-545:545:>
   49   13930 [main] whoami 13636 pwdgrp::fetch_account_from_windows:
line: <INTERACTIVE:S-1-5-4:4:>
   27   13957 [main] whoami 13636 pwdgrp::fetch_account_from_windows:
line: <CONSOLE LOGON:S-1-2-1:66049:>
   25   13982 [main] whoami 13636 pwdgrp::fetch_account_from_windows:
line: <Authenticated Users:S-1-5-11:11:>
   23   14005 [main] whoami 13636 pwdgrp::fetch_account_from_windows:
line: <This Organization:S-1-5-15:15:>
   22   14027 [main] whoami 13636 pwdgrp::fetch_account_from_windows:
line: <LOCAL:S-1-2-0:66048:>
   25   14052 [main] whoami 13636 pwdgrp::fetch_account_from_windows:
line: <Unknown+Group:S-1-12-1-2741946010-1181797680-2322883994-3292483823:4294967295:>
   24   14076 [main] whoami 13636 pwdgrp::fetch_account_from_windows:
line: <Cloud Account Authentication:S-1-5-64-36:262180:>
   26   14102 [main] whoami 13636 internal_getlogin: user not found in passwd DB
   22   14124 [main] whoami 13636 cygheap_user::ontherange: what 2, pw 0x0
   23   14147 [main] whoami 13636 cygheap_user::ontherange: HOME is
already in the environment /home/RussellMora
========

Went back to the Windows version of whoami and got this:

========
C:\WINDOWS\system32>whoami /fqdn
ERROR: Unable to get Fully Qualified Distinguished Name (FQDN) as the current
       logged-on user is not a domain user.

C:\WINDOWS\system32>
========

Yeah... I'm not too surprised it doesn't work....

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

