www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/12/16/09:15:43

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Mon, 15 Dec 2008 17:18:24 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: SSH V.5.1 with Cygwin1.dll 1.7.0(0.189/5/3) 2008-12-09: Very large logon times...
Message-ID: <20081215161824.GA6830@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <OFB9B7CEEA DOT 015F9FE3-ONC1257520 DOT 003D6956-C1257520 DOT 003D749A AT nbg DOT sdv DOT spb DOT de> <20081215135047 DOT GU32197 AT calimero DOT vinschen DOT de> <OF9DDDB5A1 DOT 3FF00E83-ONC1257520 DOT 004F6858-C1257520 DOT 005163AC AT nbg DOT sdv DOT spb DOT de>
MIME-Version: 1.0
In-Reply-To: <OF9DDDB5A1.3FF00E83-ONC1257520.004F6858-C1257520.005163AC@nbg.sdv.spb.de>
User-Agent: Mutt/1.5.16 (2007-06-09)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com



Please, don't http://cygwin.com/acronyms/#TOFU



On Dec 15 15:49, Carsten.Porzler wrote:
> Hello, Corinna,
> 
> "large" logon time means 45 - 66 secs during public key authentication 
> from viewing the banner text until an simple command has been excuted 
> (e.g. "uname -a"). Password authentication works faster (about 20 sec), 
> but much slower than with cygwin v.1.7.0 2008-06-18 (about 2 sec for 
> password and public key authentication).

Works fine for me.  A logon takes about 3 secs on my machine...

> We actually use cyglsa.dll because we need real user switching with public 
> key authentication.

...using cyglsa, or, FWIW, any other logon method (create_token,
password in LSA registry).  In theory, the cyglsa DLL doesn't call any
time consuming function.  The main part of the job is already done in
the Cygwin DLL's seteuid() call by the calling server process, sshd in
this case.  I examined the cyglsa.c code once more and there's nothing
in it which would explain the lag you're observing.  The difference in
size is due to a lot of additional debug code which is kept available,
but is inactive.

Did you try to debug this problem yourself in some way?  The source code
of all componentes is freely available, as you might know.  I'm
wondering if something in later Cygwin 1.7 DLLs collides with some stuff
on your machine (firewall, virus checked, whatever) or with some
settings in your environment.  I assume the actual delay occurs in the
Cygwin DLL, not in the cyglsa.dll.  It shouldn't be too hard to find out
where it dawdles if you're willing to invest some time in debugging.

> Because of the "large logon time" problems we use the version of 
> 2008-06-18 and not the newer ones.
> 
> I noticed also, that the accesses to the pipes did not appear in the 
> cygwin versions before 2008-06-18. Anything seems to be changed after this 
> date.

Did you test the next version after that, 2008-07-26?  Does it already
show the pipe access you seem to observe in recent versions?  The latest
Cygwin DLLs add the password in registry stuff which also does some LSA
calls, which might explain some of the LSA pipes.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019