This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: mkpasswd (Win2K) cannot find the domain controller


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]