www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/08/31/08:32:05

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:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=TdQftSk2tOJk+cbttN3q2Mn/wAJWHnIQynknFr4uklaYZqFE4+W00
FHVHJj0uMiquU0uUpFNmholppeVUu2N8nTFwml53oTE0Hm6Fh28IiXo1gIt/WZwQ
gYiv2bSrUY0D0SgO57hPofSFr0n9ZJ1lcXTj4lAT5FpmI0XBvYbq6U=
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:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=BOofGNycOhRHla2qiil1Qhlb71w=; b=vYG4hSXfoMCvlWnzBEYs7O2TmFtK
yGEEHiClZSvARxMjKLkTLXw45lU/SMHms5Fa3JkhmmgW0MWd9ICZw8oFLoFoz9zN
AcSSyI0VibH3Y+gEbE5UVZhzfWGdavLAb70z8B4UlShj9orUVTuMI+v59noKiCeW
ObyuIu0nFd9DZjQ=
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=-99.8 required=5.0 tests=AWL,BAYES_20,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=Password, 31.8.2016, Microsoft's, microsoft's
X-HELO: drew.franken.de
Date: Wed, 31 Aug 2016 14:31:46 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: passwd unrecoverable error 1265
Message-ID: <20160831123146.GB15557@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <0da61897-6270-e20a-6d86-eae87a9f66f8 AT gmail DOT com> <20160831101638 DOT GD5955 AT calimero DOT vinschen DOT de> <a6751f95-d4d3-cf12-e2bf-a8b5eaac8aef AT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <a6751f95-d4d3-cf12-e2bf-a8b5eaac8aef@gmail.com>
User-Agent: Mutt/1.6.2 (2016-07-01)

--MW5yreqqjyrRcusr
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Aug 31 14:12, Vlado wrote:
> On 31.8.2016 12:16, Corinna Vinschen wrote:
> > I found a workaround:  The Windows call for changing the password used
> > by the passwd tool is
> >=20
> >   ret =3D NetUserChangePassowrd (server, username, old_pwd, new_pwd);
> >=20
> > The server is usually the logon server, prepended by double backslash,
> > as in the variable $LOGONSERVER, and this is how passwd uses the functi=
on.
> > However, while this still works fine on W7 and 2008R2, it fails on the
> > newer systems with error 1265, ERROR_DOWNGRADE_DETECTED.
> >=20
> > The workaround puzzles me slightly, but it seems to do the trick:
> > If I use the domain name (as in $USERDOMAIN) instead of the server
> > name when calling this function, it works as expected, also on W7
> > or 2008R2.
>=20
> Thank You for very useful information.
>=20
> I tried Your workaround and it works perfectly for me:
> 	test AT server ~
> 	$ LOGONSERVER=3Dserver passwd
> 	Old password:
> 	New password:
> 	Re-enter new password:
> 	Password changed.
>=20
> 	test AT server ~
> 	$
>=20
> (Old value in $LOGONSERVER was \\server)
>=20
> My server is standalone Windows Server 2008R2 Enterprise, so Microsoft's
> error message is not quite correct.
>=20
> (On Yours 2008R2 problem didn't occur - interesting.)

Yeah, I have no idea why :(


Corinna

--=20
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--MW5yreqqjyrRcusr
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJXxs4yAAoJEPU2Bp2uRE+gRTUQAJ6DQA5FR7yEIg5tsWN9L9I1
u/hluuEHKmomYzIm8UDQ4GDQY49OnC2i1uZvFG4ASXxdsF3r3gX+knh38EPUVPhl
ZQuAWt/Rh7y+4v/Qd2IMYZy9uNRMEtG0jHG0+yC2X/sBJ21f0vkl8AEGLpnHFNDA
ARRIULf9+ByCET+1wguRZC0W4+CT3KH47bGnpRVsrCTBx/ri24EMl6KjYhfufpWb
nLTISvwUsgwO1P9+w27iFmytUnec2gGzzkmzryqJ5s1P3MVJ0dz6xXwQVnaeYldG
19v1V5rSoHNdl6DwusrSxFM4hDFt87KaFfEfj17in00PwZzH17t3Fg5D+/ZBCDhT
H3bSyvc9mwBj87kGvVLEynz0JHCVYS5gdhHgESWiFeihPFunz7/Em2/lpaAFgiMv
ph5I551EjO5EvEaYM9OjavvRYZcfWwrVBf927v8PC3LqwETWX0msIahI6wiIPW63
kSAxH6bSMvX8mfgvDKyKmkeIxTDwjjvzWbVsuYxVTx9VYD8BShBKxYZsA0ZBu87f
W6EUdx5uyW81IoBnKX/CCl9WyyziprX69kZyLvp+vK0bB2h5PVM+4u8zAPNjSInH
X5Hn4enumknoxqQjBFZ7C26Zp9qEFDIXhjp4Z3hkRpapqTtFQnzcbJBOyCfyy6ga
syLKhuElCVIy9j6agYDv
=Pr2k
-----END PGP SIGNATURE-----

--MW5yreqqjyrRcusr--

- Raw text -


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