public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: Maayan Apelboim <Maayan.Apelboim@clarizen.com>
Cc: cygwin@cygwin.com
Subject: Re: getent doesn't work properly
Date: Thu, 24 Oct 2019 14:06:00 -0000	[thread overview]
Message-ID: <20191024140611.GG16240@calimero.vinschen.de> (raw)
In-Reply-To: <AM4PR07MB347382AE0B09286C8E8190C8956B0@AM4PR07MB3473.eurprd07.prod.outlook.com>

[-- Attachment #1: Type: text/plain, Size: 2219 bytes --]

On Oct 23 13:33, Maayan Apelboim wrote:
> 
> 
> Since I can't reproduce this problem, would you mind trying to run getent under strace?  It would be helpful to get 2 strace outputs for the same account, one working, one failing.  Call it like this:
> 
>   $ strace -o getent-1.trace getent passwd <account>
> 
> 
> Thanks,
> Corinna
> 
> --
> Corinna Vinschen
> Cygwin Maintainer
> 
> 
> ---------------
> 
> Attached.

Thanks.  What happens is that in the non-working scenario the user
name is refused by Cygwin because it's apparently not in the primary
domain of the machine.  I.e., if the machine's primary domain is
"dom0", and "user1" is in "dom1", then the account has to be called
"dom1+user1".  The name only is forbidden in this case.

However, this doesn't explain why this happens at all since apparently
"user1" is in the primary domain of the machine, and why it only fails
intermittendly.  In both cases, working and non-working, the domain is
returned by the same Windows call LookupAccountNameW.

What's really strange is that in the working case a lot of network
related Windows DLLs are loaded into the process, e.g. wshqos.dll,
WSHTCPIP.DLL, wship6.dll etc., while this does not happen in the
non-working case.  None of these DLLs is requested by Cygwin, so this is
something occuring in the native Windows background.  This is a bit
suspicious and may point to some interaction with a virus scanner or
something along these lines, and which for some reason doesn't always
work as desired (Avast, anybody?)  Can you check this, perhaps?

Apart from that first question is, is the domain really called "dom"
and is the user account name really "user1"?  I'm asking because
the name may collide with another account name from a builtin or
second domain, and sometimes the wrong user account is returned by the
Windows functions for whatever reason.

Second question is, can I send you the URL to a Cygwin test DLL with
extended debug info in private email?  In this case I'd only need
the non-working trace, preferredly verbatim, and you can return the
trace by private email as well.


Thanks,
Corinna

-- 
Corinna Vinschen
Cygwin Maintainer

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2019-10-24 14:06 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-17  9:02 Maayan Apelboim
2019-10-17 12:23 ` Jose Isaias Cabrera
2019-10-17 13:02   ` Maayan Apelboim
2019-10-17 16:55     ` Jose Isaias Cabrera
2019-10-18 12:44       ` Brian Inglis
2019-10-18 10:52 ` Corinna Vinschen
2019-10-23 11:17   ` Maayan Apelboim
2019-10-23 11:42     ` Corinna Vinschen
2019-10-23 13:28       ` Brian Inglis
2019-10-23 13:33       ` Maayan Apelboim
2019-10-24 14:06         ` Corinna Vinschen [this message]
2019-10-28  8:56           ` Maayan Apelboim
2019-11-13 12:04             ` Maayan Apelboim
2019-11-13 12:08               ` Maayan Apelboim
2019-10-18 11:05 ` Andrey Repin
2019-10-22  8:22   ` Maayan Apelboim
2019-10-28 17:35     ` Andrey Repin
2019-10-29  0:03       ` Brian Inglis
2019-11-13 15:18         ` Maayan Apelboim
2019-11-25 13:29           ` Maayan Apelboim
2019-11-25 15:24             ` Maayan Apelboim

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20191024140611.GG16240@calimero.vinschen.de \
    --to=corinna-cygwin@cygwin.com \
    --cc=Maayan.Apelboim@clarizen.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).