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 Delivered-To: mailing list cygwin AT cygwin DOT com X-Originating-IP: [163.166.150.22] From: "J S" To: cygwin AT cygwin DOT com Subject: mkpasswd - cannot contact Domain Controller Date: Thu, 24 Jan 2002 14:22:28 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 24 Jan 2002 14:22:28.0741 (UTC) FILETIME=[8D8BFB50:01C1A4E2] Looking at the code then, it seems to bomb out in main when it gets to: if (print_domain) { if (domain_name_specified) rc = netgetdcname (NULL, domain_name, (LPBYTE *) & servername); else rc = netgetdcname (NULL, NULL, (LPBYTE *) & servername); if (rc != ERROR_SUCCESS) { print_win_error(rc); exit (1); } The problem is with the call to netgetdcname which returns the name of the primary domain controller. This works on my computer (which is DHCP enabled and seems to configured for a Primary WINS server). My colleague has a fixed IP address, but I can't see any Primary WINS server configured when I issue an IPCONFIG /ALL. Is the PDC not supposed to be configured for a fixed IP address do you know? JS _________________________________________________________________ Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com -- 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/