This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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/

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]