From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18464 invoked by alias); 8 May 2002 13:12:40 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 18434 invoked from network); 8 May 2002 13:12:34 -0000 Received: from unknown (HELO mtaout03) (24.153.64.2) by sources.redhat.com with SMTP; 8 May 2002 13:12:34 -0000 Received: from althea.tishler.net (bgp572446bgs.eatntn01.nj.comcast.net [68.39.6.197]) by mtaout03.icomcast.net (iPlanet Messaging Server 5.1 HotFix 0.6 (built Apr 26 2002)) with SMTP id <0GVS00BVINCXQO@mtaout03.icomcast.net> for cygwin@cygwin.com; Wed, 08 May 2002 09:12:33 -0400 (EDT) Received: by althea.tishler.net (sSMTP sendmail emulation); Wed, 08 May 2002 09:19:10 -0400 Date: Wed, 08 May 2002 06:16:00 -0000 From: Jason Tishler Subject: Re: mkpasswd (Win2K) cannot find the domain controller In-reply-to: To: cygwin@cygwin.com Mail-followup-to: cygwin@cygwin.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.4397.ezmlm@cygwin.com> X-SW-Source: 2002-05/txt/msg00468.txt.bz2 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/