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 Date: Wed, 08 May 2002 09:19:10 -0400 From: Jason Tishler Subject: Re: mkpasswd (Win2K) cannot find the domain controller In-reply-to: To: cygwin AT cygwin DOT com Mail-followup-to: cygwin AT cygwin DOT com Message-id: <20020508131910.GB1700@tishler.net> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Content-disposition: inline User-Agent: Mutt/1.3.24i References: <1020349957 DOT 4397 DOT ezmlm AT cygwin DOT com> Jerry, On Tue, May 07, 2002 at 03:58:17PM -0400, Gerald S. Williams wrote: > Although we get errors like the following: > > $ mkgroup -d > ... > Cannot get PDC, code = 2453 > > $ mkpasswd -d > ... > mkpasswd: [2453] Could not find domain controller for this domain. While trying to help a co-worker in the UK, we determined that he could successfully run mkpasswd without the "-u" option, but with this option he got the following error: NERR_UserNotFound (i.e., 2221) Since he was located far away, I did not pursue this further. While helping another co-worker locally, but part of another domain, we determined that for some reason he had to explicitly specify the domain name: $ mkpasswd -d -u user domain What happens if you try the above command with user and domain replaced as appropriate? BTW, I found the following (http://faqchest.dynhost.com/msdn/DCOM/dcom-00/dcom-0008/dcom00082115_15544.html): 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. Here's the kicker: when I run USRMGR.EXE and point it at one of the LMHOSTS-visible domains, it connects to a domain controller without a problem. What am I doing wrong that USRMGR is doing right? My LMHOSTS entries: 10.0.0.1 PDCNAME #PRE #DOM:DOMAIN 10.0.0.1 "DOMAIN \0x1B" #PRE 10.0.0.1 "DOMAIN \0x1C" #PRE Could your problem be similar to the above? HTH, Jason -- 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/