delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/05/14/11:07:07

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
From: "Gerald S. Williams" <gsw AT agere DOT com>
To: "Heribert Dahms" <heribert_dahms AT icon-scm DOT com>, <cygwin AT cygwin DOT com>
Subject: RE: mkpasswd (Win2K) cannot find the domain controller
Date: Tue, 14 May 2002 11:06:07 -0400
Message-ID: <GBEGLOMMCLDACBPKDIHFEEDLCIAA.gsw@agere.com>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
Importance: Normal
In-Reply-To: <BF35D9C143BCCC4EB63181B67C9320C83A9C3A@serv-075.icon-germany.local>
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000

Heribert Dahms wrote:
> maybe Jerry should improve his patch to make it runtime selectable like
> mkpasswd --use-netgetanydcname [...]

Corinna Vinschen wrote:
> > 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 checked, and Microsoft's Developer Network seems to recommend
the current approach (using GetDC, not GetAnyDC), although it
doesn't explain why either.

It is entirely possible that this is a solution looking for a
problem. I just came across it while looking into an unrelated
problem.

In any event, I don't currently have the resources to set up a
Windows network with PDC and BDC in order to test this. I don't
think my company networking people would look kindly on taking
down their PDC to test it. :-)

A possibly more interesting enhancement would be the patches I
made to enable Active Directory support. This uses DsGetDcNameW
to get the domain controller information instead. Unfortunately,
it relies on a number of definitions not provided by Cygwin (I
hacked them into mkpasswd.c temporarily to get it to work). If
there's interest, I'll post these. However, they are currently
just hacked in as a replacement. I just got a new assignment
that will tie me up for the next month, so I won't be cleaning
these up much anytime soon.

-Jerry


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