delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/05/13/06:40:41

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
Date: Mon, 13 May 2002 12:39:32 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: mkpasswd (Win2K) cannot find the domain controller
Message-ID: <20020513123932.B6264@cygbert.vinschen.de>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <E175WFc-0002Ie-00 AT granger DOT mail DOT mindspring DOT net> <GBEGLOMMCLDACBPKDIHFOECPCIAA DOT gsw AT agere DOT com>
Mime-Version: 1.0
In-Reply-To: <GBEGLOMMCLDACBPKDIHFOECPCIAA.gsw@agere.com>
User-Agent: Mutt/1.3.22.1i

On Wed, May 08, 2002 at 03:41:29PM -0400, Gerald S. Williams wrote:
> Meanwhile, I'm wondering if a change similar to the patch
> below should be made to mkpasswd.c?

I'm somewhat reluctant to apply that patch to mkpasswd.  The
reason is... I don't know.  I recalled that I'd once changed
from using NetGetAnyDCName() to NetGetDCName() for *some*
reason.  I found the change in the ChangeLog, 2000-04-15.
Unfortunately I don't remember what the exact problems with
NetGetAnyDCName() were.  Sigh.

Corinna

> 
> -Jerry
> 
> Index: mkpasswd.c
> ===================================================================
> RCS file: /cvs/src/src/winsup/utils/mkpasswd.c,v
> retrieving revision 1.21
> diff -u -r1.21 mkpasswd.c
> --- mkpasswd.c	29 Apr 2002 10:21:54 -0000	1.21
> +++ mkpasswd.c	8 May 2002 19:36:14 -0000
> @@ -50,7 +50,7 @@
>      return FALSE;
>    if (!(netlocalgroupenum = (void *) GetProcAddress (h, "NetLocalGroupEnum")))
>      return FALSE;
> -  if (!(netgetdcname = (void *) GetProcAddress (h, "NetGetDCName")))
> +  if (!(netgetdcname = (void *) GetProcAddress (h, "NetGetAnyDCName")))
>      return FALSE;
>    if (!(netusergetinfo = (void *) GetProcAddress (h, "NetUserGetInfo")))
>      return FALSE;
> 
> 
> --
> 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/

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