delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/12/23/04:57:50

X-Spam-Check-By: sourceware.org
Date: Fri, 23 Dec 2005 09:57:23 +0000
From: Owen Rees <owen DOT rees AT hp DOT com>
To: cygwin <cygwin AT cygwin DOT com>
Subject: Re: Can not Contact Domain Controller
Message-ID: <C0A84DB01B913BFE1CEFEE66@rees-o-3.labs.hpl.hp.com>
In-Reply-To: <20051222220812.46886.qmail@web81306.mail.mud.yahoo.com>
References: <20051222220812 DOT 46886 DOT qmail AT web81306 DOT mail DOT mud DOT yahoo DOT com>
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

--On 22 December 2005 14:08 -0800 Mike Blanco wrote:

> So I have tried to do this:
>
> mkgroup -l -d > /etc/group
> mkpasswd -l > /etc/passwd
> administrator AT bgserver1 ~
> $ mkpasswd -u "mblanco" -d "bgchemical.com" >
> /etc/passwd
> mkpasswd (731): [2453] Could not find domain
> controller for this domain.
>
> I can never contact my domain controller, which is on
> the same machine as the cygwin.

The prompt suggests that you are logged in as 'administrator', not as 
'mblanco' so you will need to set up the account 'administrator' properly 
in cygwin if you want things to work in that context.

As Holger asked, are you sure that "bgchemical.com" is your windows domain 
name? Are you perhaps confusing Internet domains (as in DNS, FQDN and names 
like 'example.com') with Windows Domains (as in PDCs, BDCs and these days 
Active Directory). The terminology is somewhat confusing, especially since 
the two kinds of domain can be linked if the Windows Domain Administrator 
knows what they are doing (see Gary's response to your question). Even if 
the Windows Domain and DNS have been set up so that they work properly 
together, my quick experiment suggests that you do not use a FQDN for the 
'-d' parameter to mkpasswd.

On the subject of domain controllers, if you can log in as administrator on 
a machine that is running a Windows Domain Controller then I would hope 
that you know far more about being Windows Domain Administrator than I 
remember from the Windows NT Admin course I did nearly 10 years ago. If you 
meant that you are running a DNS server then that is an entirely different 
thing.

Two things to do to get some basic information before going any further:

At a Windows Command Prompt type

 whoami

This should respond with

 DOMAIN\user

For values of DOMAIN and user that match what you use to log in to Windows. 
Then from a cygwin shell type

 echo -u "$USERNAME" -d "$USERDOMAIN"

the USERNAME and USERDOMAIN environment variables should be set to the 
values reported by whoami (Note that there is also a whoami command 
provided by cygwin - it is not the same thing as the Windows command).

If the values matched, in a cygwin shell type

 mkpasswd -u "$USERNAME" -d "$USERDOMAIN"

This should respond with the line you need to put in your /etc/passwd to 
make things work for the user you are logged in as.

One final point. In the extract quoted above you used '> /etc/passwd' for 
the second call of mkpasswd but this will replace the previous contents of 
/etc/passwd deleting all the local account data. You should use '>> 
/etc/passwd' to append the extra line.

-- 
Owen Rees
Hewlett Packard Laboratories, Bristol, UK



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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