delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/01/30/06:59:51

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
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Wed, 30 Jan 2002 12:57:26 +0100
From: Corinna Vinschen <cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Pls. help : passwd - misunderstanding
Message-ID: <20020130125726.C11608@cygbert.vinschen.de>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <20020130080900 DOT 68535 DOT qmail AT web21201 DOT mail DOT yahoo DOT com>
Mime-Version: 1.0
In-Reply-To: <20020130080900.68535.qmail@web21201.mail.yahoo.com>
User-Agent: Mutt/1.3.22.1i

On Wed, Jan 30, 2002 at 08:09:00AM +0000, Tiffany Chan wrote:
> Cygwin 1.3.3 is installed in a normal win 2000
> advanced server A (SP2). Server A connected to Domain,
> but it is not DC. 
> 
> Local users are created in Server A. "passwd" and
> "group" files are created by,
> 
> $ mkgroup -l > /etc/group 
> $ mkpasswd -l > /etc/passwd
> 
> When I telnet to server A (by Cygwin) with local users
> account and change password,
> 
> 
> $ passwd
> Enter the new password (minimum of 5, maximum of 8
> characters).
> Please use a combination of upper and lower case
> letters and numbers.
> Old password: <<<local user type old password here>>>
> Bad password: Too short.

The old password is checked against the SAM of the logon
domain by calling

  NetUserChangePassword(NULL, username, oldpasswd, oldpasswd);

which should work if there are no password restricions and
the oldpasswd is correct.  If you have a password restriction
on server A, this call already fails.  That's not quite correct
but I can't say anything else then the last time.  The error
message is generated as a result of this Win32 call.  It's
*not* a Cygwin error message, it's a Windows error message.

However, I've changed passwd in the developers sources so that
it only exits when the old password is explicitely wrong
(NetUserChangePassword() returns ERROR_INVALID_PASSWORD).

This should help.  If you need it soon, try it from one of
the next developer snapshots.

Corinna

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

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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