Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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" To: "Jason Tishler" , Subject: RE: mkpasswd (Win2K) cannot find the domain controller Date: Wed, 8 May 2002 13:55:45 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 In-reply-to: <20020508131910.GB1700@tishler.net> Importance: Normal Jason Tishler wrote: > $ mkpasswd -d -u user domain > What happens if you try the above command with user and domain replaced > as appropriate? From BASH ($USERNAME and $USERDOMAIN are correct): $ mkpasswd -d -u $USERNAME $USERDOMAIN mkpasswd: [2453] Could not find domain controller for this domain. From CMD: C:\cygwin>bin\mkpasswd -d -u %USERNAME% %USERDOMAIN% mkpasswd: [2453] Could not find domain controller for this domain. > I am writing a program using the LAN Manager API. I have a loop that > calls NetGetDCName() for each domain in a list. Some of the domains > are visible through WINS, and some aren't (I have LMHOSTS entries for > them). NetGetDCName() always succeeds for the WINS-visible domains; > it always returns NERR_DCNotFound for the LMHOSTS-visible domains. ... > Could your problem be similar to the above? I think this is a different problem, since we're not using LMHOSTS. -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/