delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/04/22/01:14:31

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
X-AuthUser: gerrit:koeln.convey.de
Date: Tue, 22 Apr 2003 07:18:11 +0200
From: "Gerrit P. Haase" <gp AT familiehaase DOT de>
Organization: Esse keine toten Tiere
X-Priority: 3 (Normal)
Message-ID: <9326520504.20030422071811@familiehaase.de>
To: Corinna Vinschen <cygwin AT cygwin DOT com>
Subject: Re: proftpd
In-Reply-To: <20030421222353.GF11137@cygbert.vinschen.de>
References: <20030103133222 DOT GA1712 AT tishler DOT net>
<20030107150428 DOT A14974 AT cygbert DOT vinschen DOT de> <20030109164436 DOT GA1064 AT tishler DOT net>
<20030109164943 DOT GA3100 AT redhat DOT com> <20030109182038 DOT G21839 AT cygbert DOT vinschen DOT de>
<20030113143459 DOT GE1012 AT tishler DOT net>
<176380637637 DOT 20030421225541 AT familiehaase DOT de>
<20030421222353 DOT GF11137 AT cygbert DOT vinschen DOT de>
MIME-Version: 1.0

Hallo Corinna,

Am Dienstag, 22. April 2003 um 00:23 schriebst du:
> On Mon, Apr 21, 2003 at 10:55:41PM +0200, Gerrit P. Haase wrote:
>> I could compile the current cvs source, the server runs, but ...
>> I cannot login.
>> [...]
>> +#ifdef __CYGWIN__
>> +  /* We have to do special Windows NT voodoo with Cygwin in order to be
>> +   * able to switch UID/GID. More info at
>> +   * http://cygwin.com/cygwin-ug-net/ntsec.html#NTSEC-SETUID
>> +   */
>> +       if (is_winnt) {
>> +               HANDLE hToken = cygwin_logon_user(pw, pass);
>> +
>> +               if (hToken == INVALID_HANDLE_VALUE)
>> +          goto auth_failure;
>> +               cygwin_set_impersonation_token(hToken);
>> +       }
>> +#endif /* __CYGWIN__ */
>> +

> Actually I'm missing something like an `else' here.  The authentication
> on NT/2K/XP is done *instead* of making any authentication like calling
> crypt() to verify the password or calling some PAM functions.  You must
> make sure that on NT/2K/XP that stuff doesn't get called.  On 9x/Me
> OTOH you still must use crypt() to verify the password.  If you want to
> see a really simple example, have a look into the login(1) source

I don't need it for Win98.  Windows 98 is a dead cow...

I configured with additional options and now I can login too.
But still having problems.  Lets see what Jason figured out.


Gerrit
-- 
=^..^=


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