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 ([EMAIL PROTECTED])

> -----Original Message-----
> From: Corinna Vinschen [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, May 13, 2002 12:40
> To:   [EMAIL PROTECTED]
> 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/

Reply via email to