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:date:from:reply-to:message-id:to:subject
	:in-reply-to:references:mime-version:content-type
	:content-transfer-encoding; q=dns; s=default; b=A+IGq2hLBk8Yxppz
	tcsaautWPhmzMJvFoXnTen1HFQbnvjV08b0C1JhnMCMEgZKfDPfsn6Od+kR89V39
	mdXd4MtQFYUKvqtuD3Ad2A4CCsBhwPguz5wR6cfgUuf59CD5yc4E8sKxhdXOMGV/
	wmtQXqbrlg70xNcF606DVqS5p8w=
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:date:from:reply-to:message-id:to:subject
	:in-reply-to:references:mime-version:content-type
	:content-transfer-encoding; s=default; bh=OTnUg1tnNn/REkecsJXdn0
	3L/Xs=; b=qyDdZbY/bwOT5eRUKibT6ZEBJd6h2Hvt5ye7dnZ/lc0Z9fcxw3lsWh
	61sHlNlsSf9pGEInBMXAC0/WwAeM+BCINvRuEnAv8GVGqezPSLTqmB/UrCi8B8oP
	nACCL04XjuCh6XdkQ+XqfTOaEAcMxv3JEiw+St0VJ6jaw6a0wRWnY=
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=4.6 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_THEBAT,SPF_SOFTFAIL autolearn=no version=3.3.2
X-HELO: smtp.ht-systems.ru
Date: Thu, 23 Jul 2015 00:46:27 +0300
From: Andrey Repin <anrdaemon@yandex.ru>
Reply-To: cygwin@cygwin.com
Message-ID: <341710545.20150723004627@yandex.ru>
To: Jarek <yaro_29@hotmail.com>, cygwin@cygwin.com
Subject: Re: Cygwin ssh and Windows authentication
In-Reply-To: <BLU436-SMTP147434267174B49E8813BD49E830@phx.gbl>
References: <BLU436-SMTP39AE7DD48809E802CE4DAE9E860@phx.gbl>   <1301881165.20150720013859@yandex.ru>  <BLU436-SMTP217DCBDBFA0EED5BC1ACFFB9E850@phx.gbl>  <1399485278.20150721032532@yandex.ru>  <BLU436-SMTP238C37DE9A243EA7E7F794F9E840@phx.gbl>  <981419184.20150721233655@yandex.ru>  <BLU436-SMTP147434267174B49E8813BD49E830@phx.gbl>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

Greetings, Jarek!

>>>>> So why are they not needed as your comment doesn't really explain that
>>>> Read 1.7.35 changelog.
>>>> In short, username resolution was completely reworked, thanks to Corinna, and
>>>> Cygwin now directly address domain controllers for it.
>>> OK so it addresses DCs to check some settings or priviliges. I don't
>>> suppose it just asks 'hey DS, can contoso\johnd access sshd on server1?'
>> Indirectly, that can be done, i.e., by including a user in "SSH" group and
>> allow only "DOMAIN+SSH" group to authorize on server.
> I assume the group name is arbitrary and can be named anything.

Of course. I have a generic "RemoteUsers" group for all users that allowed
remote access (VPN, SSH, etc.)

> I went thrugh local rights on my sshserver and I see the Everyone, and 
> Users local groups have Allow to access this computer via network.
> I take it the 'Act as part of the OS','Create a token object' and 
> 'Replace a process level token' rights are only for the account running 
> the sshd service.

Yes, these are only used by service itself, and not propagated to the users
connected.

>> Verbose logging from both client and server may give some insight, too.

> Here is what I get from the logs on the client when attempting to 
> connect with WinSCP

Try using only username to login. Without domain prefix.
And disable other auth mechanics, while you are testing namely I see it trying
GSSAPI, which wouldn't work unless explicitly configured and allowed.

Please attach long listings as files or provide links to pastebin service of
your choice.


-- 
With best regards,
Andrey Repin
Thursday, July 23, 2015 00:42:20

Sorry for my terrible english...


--
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

