delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/11/22/14:56:03

X-Recipient: archive-cygwin AT delorie DOT 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:mime-version:from:date:message-id:subject:to
:content-type; q=dns; s=default; b=FT8z9O1ByXvqGJSn7MIQyKK+Ia9iu
kB4IOtnQ3BZRb+f6JIWnbxgksFUAfcyTiQ4zjaoY2Po/iqz9sWbkto864rlXIIHJ
astz1GUxhAnsW22ns7RsaVyLfSPgEf35sq0A5FTC2R1FIqs0/d06bUowEiIYeZRy
kg4kt7JCNYXHFE=
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:mime-version:from:date:message-id:subject:to
:content-type; s=default; bh=8EQllGaPN7SSSUeu61I1lfNurgw=; b=uCE
uZmHrlQ9ylb+0Ion4xUc4w5fUjOqSfTrHxmbodr+I2Z6zDdCSWSW4rbxARIM3AM/
FpAjAphFP5ueRKXgB4eKZzyvawO53uqF+BdD891wTEcIwEneol0MJiXK/SGsNVE0
WFa7AqXgz6vkGgky2pzEjl5PfKEAF45WmnW+y+zo=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=3.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM,HTML_MESSAGE,KB_WAM_FROM_NAME_SINGLEWORD,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.2 spammy=Rao, rao, administrator, logon
X-HELO: mail-qk0-f177.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=eG4Ry03urmzUvOKMwMZYopeq+z5jQs5vC1AyZK5jVdA=; b=OPJ2/D+DT86EKzEF6VhovMtZsfLjr3LuQ0ortvy/KzsBHnLsnIQjQfiTNgfhuRFw2p TQbGV63O5T30TBWi2nD26av6mQjHEkPSnQqi/R7c2Z0q4kA7tAp/a3u1/qt0TLDdyiCu S6dpyMFNY3vZyZZNnHphRcVt4INC6bRiJtTr7nkF3/HfQoiNcPnuOUibkQbzVBsuhOmE 5xCaSkvGiqMn74nRNfsTO8XYG20L2tnxM/7Dvm44W5QJRfiQG3nfP0nlyntvHYXYDb75 E+e6RS+zuqxf4S63AnCf3QqYgOv++3JGLPxa9Mz2N8wQ2pXrMIgiLUQ1BMlmAu5Wf4+O sD0A==
X-Gm-Message-State: AJaThX53S9OF7XrI0yBBYPSGqksR7XqKWJ8p1fMHG9YxNubyblUuHxCH fwVBU2Jh9AFmW/n7gfvOTNOflbc4zZ5BMAHta37FWA==
X-Google-Smtp-Source: AGs4zMZpbz4tUrywIU3SR5Qy1wptld0rFun4GnUuqAwBK52st7K85McBQUOraVqDQAJUYTzPvvrKj+mDLr7H+htDqpI=
X-Received: by 10.55.51.73 with SMTP id z70mr32606195qkz.338.1511380548227; Wed, 22 Nov 2017 11:55:48 -0800 (PST)
MIME-Version: 1.0
From: Challa Rao Ande <challarao DOT abvk AT gmail DOT com>
Date: Thu, 23 Nov 2017 01:25:47 +0530
Message-ID: <CAAeU+QwQk2+yGNTTvG6Z+LkJH6YjACGrtqG71sPF7fui4YgwfA@mail.gmail.com>
Subject: Windows Credential Manager doesn't work with non cyg_server user when logged in over SSH
To: cygwin AT cygwin DOT com

Hello all,

I'm working on an application which writes to Windows Credential Store
(CredWrite api). I observed that when running this app over SSH session to
a remote windows machine, it would give me an error: "A specified logon
session doesn't exist. It may have been terminated."  This error is
mentioned in many forums in different contexts.

The target machine has Cygwin installed (version 2.9.0(0.318/5/3)). The
SSHD service is running with user cyg_server. cyg_server has administrator
rights.

After some debugging, I found out that this works for cyg_server user but
not for other users. That means, if I log in over SSH with cyg_server user
credentials, the app works fine.

The other user that I'm using is a domain user. So to see if this is only
issue with domain users, I created a local user and tried out my app. But
still the issue persists.

One more observation I have done is, when I invoke cmdkey command on ssh
session, for cyg_server it would display the keys of this user from
Credential Manager. But for other users, it would display an empty list
although the corresponding users have keys in their Credential Manager.

I also tried "login" in remote session again to no avail. Is this the way
it is supposed to work, obviously not I guess.

What am I missing?

*PS*: I'm sending this email after reducing the problem to the current
state. I've tried everything from Google search, SO, Event Viewer in
Windows to figure this out. Apologies for any trouble.

Thank you
Challa Rao Ande

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

- Raw text -


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