This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Reorganizing internal_getlogin() patch is in


On Mon, Jun 17, 2002 at 10:42:47PM -0400, Pierre A. Humblet wrote:
> At 01:31 PM 6/17/2002 +0200, Corinna Vinschen wrote:
> >The original reason was to speed up things in domain environments.
> >The local machine has buffered the user information so it's called
> >first.  Only if that fails we fallback to calling the logon server
> >(a PDC probably).  This should avoid unnecessary net access.
> >
> >I'm curious, too, what you mean by "name aliasing".  Are you talking
> >about having a local and a domain user of the same name?
> 
> Yes, precisely.
> 
> About caching, I did some experiments on NT.
> The SID doesn't seem to be cached, in the sense that calling 
> LookupAccountSid() twice in a row, with the Ethernet unplugged the 
> second time, returns a failure after a very long delay.

What exactly did you try?  My intention was to eliminate a 
network access in case Cygwin is started on the Windows
desktop.  No setuid() is involved.  So the user information
is the one of the currently locally logged in user.  This
information should be available on the local machine even
in case of domain accounts.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]