delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/05/13/17:13:50

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
Message-ID: <BF35D9C143BCCC4EB63181B67C9320C83A9C3A@serv-075.icon-germany.local>
From: Heribert Dahms <heribert_dahms AT icon-scm DOT com>
To: cygwin AT cygwin DOT com
Subject: RE: mkpasswd (Win2K) cannot find the domain controller
Date: Mon, 13 May 2002 23:19:49 +0200
MIME-Version: 1.0

Hi Corinna,

maybe Jerry should improve his patch to make it runtime selectable like
mkpasswd --use-netgetanydcname and provide another patch to document
that together with a changelog? Could probably still count as a 'small'
patch...

Bye, Heribert (heribert_dahms AT icon-scm DOT com)

> -----Original Message-----
> From:	Corinna Vinschen [SMTP:corinna-cygwin AT cygwin DOT com]
> Sent:	Monday, May 13, 2002 12:40
> To:	cygwin AT cygwin DOT com
> Subject:	Re: mkpasswd (Win2K) cannot find the domain controller
> 
> 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/

- Raw text -


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