From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: Maayan Apelboim <Maayan.Apelboim@clarizen.com>
Cc: cygwin@cygwin.com
Subject: Re: getent doesn't show all domain users
Date: Mon, 03 Jun 2019 11:14:00 -0000 [thread overview]
Message-ID: <20190603111451.GF3437@calimero.vinschen.de> (raw)
In-Reply-To: <3a2c51fe-894d-8959-70b9-22a9d8f980aa@SystematicSw.ab.ca>
[-- Attachment #1: Type: text/plain, Size: 1364 bytes --]
On May 27 09:59, Brian Inglis wrote:
> On 2019-05-27 03:15, Maayan Apelboim wrote:
> > I have a server in the domain (duplicated from another domain if it matters).
> > At first "getent passwd" run I see the user from the different domain, but
> > after a few runs it disappears.
> > Even after it disappears getent doesn't return all domain users while
> > mkpasswd -d returns all users.
> > When I try to chown user /home/user I get "invalid user" error - but this
> > user exists in the domain.
> > After a few restarts to the server or logging with the user the problem is
> > solved.
> > But I don't have a constant work around that works smoothly.
>
> Systems may have tens to hundreds of local user accounts, and domains
> may have hundreds to hundreds of thousands of user accounts. The
> system probably caches only active users, and getent enumerates those
> if no /etc/passwd file exists, as it was designed to enumerate only a
> few entries from local files. As it is, getent will not even
> enumerate hosts from the local hosts files or resolver.
Pointing to the user's guide which actually explains why this happens:
https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-mapping-nsswitch-enum
The user's guide! Probably the most unread document of all times... ;)
Corinna
--
Corinna Vinschen
Cygwin Maintainer
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2019-06-03 11:14 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-27 9:15 Maayan Apelboim
2019-05-27 15:59 ` Brian Inglis
2019-05-28 8:36 ` Maayan Apelboim
2019-05-28 15:15 ` Brian Inglis
2019-05-29 9:16 ` Maayan Apelboim
2019-05-29 13:25 ` Brian Inglis
2019-05-30 22:05 ` Andrey Repin
2019-06-03 11:14 ` Corinna Vinschen [this message]
2019-06-03 14:52 ` Jose Isaias Cabrera
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=20190603111451.GF3437@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).