System TipThis article applies to a different operating system than the one you are using. Article content that may not be relevant to you is disabled.
If you try to set up a trust between a Microsoft Windows NT
4.0-based domain and an Active Directory-based domain, you may experience
either of the following symptoms:
The trust is not established.
The trust is established, but the trust does not work as
expected.
Additionally, you may receive any of the following error
messages:
The following error occurred attempting to join
the domain "Domain_Name": The account is not
authorized to log in from this station.
Access
is denied.
No domain controller could be
contacted.
Logon failure: unknown username or
bad password.
When you use the object picker in Active Directory
Users and Computers to add users from the NT 4.0 domain to the Active Directory
domain, you may recieve the following error message:
No
items match the current search. Check your search parameters, and try
again.
If you receive the "No items match the current search"
error message when you use the object picker in Active Directory Users and
Computers, make sure that the domain controllers in the NT 4.0 domain include Everyone in the Access this computer from the network user right. In this scenario, the object picker tries to connect
anonymously across the trust. To verify these ssettings, follow the steps in
the "Method three: Verify the user rights" section.
To troubleshoot
trust configuration issues between a Windows NT 4.0-based domain and Active
Directory, you must verify the correct configuration of the following areas:
Name resolution
Security settings
User rights
Group membership for Microsoft Windows 2000 or Microsoft
Windows Server 2003
Method one: Verify the correct configuration of name resolution
Step one: Create an LMHOSTS file
Create an LMHOSTS file on the primary domain controllers to
provide cross-domain name resolution capability. The LMHOSTS file is a text
file that you can edit with any text editor, such as Notepad. The LMHOSTS file
on each domain controller must contain the TCP/IP address, the domain name, and
the \0x1b entry of the other domain controller.
For more
information about how to create the LMHOSTS file, click the following article
number to view the article in the Microsoft Knowledge Base:
180094
(http://support.microsoft.com/kb/180094/
)
How to write an LMHOSTS file for domain validation
After you create the LMHOSTS file, follow these
steps:
Modify the file so that it contains text that is similar to
the following text:
Note There must be a total of 20 characters and spaces between the
quotation marks (" ") for the \0x1b entry. Add spaces after the domain name so
that it uses 15 characters. The 16th character is the backslash that is
followed by the "0x1b" value, and this makes a total of 20
characters.
When you finish the changes to the LMHOSTS file, save the
file to the %SystemRoot%\System32\Drivers\Etc folder
on the domain controllers.
For more information about the LMHOSTS file, view the
Lmhosts.sam sample file that is located in the
%SystemRoot%\System32\Drivers\Etc folder.
Click Start, click Run,
type cmd, and then click OK.
At the command prompt, type NBTSTAT
-R, and then press ENTER. This command loads the LMHOSTS file into
the cache.
At the command prompt, type NBTSTAT
-c, and then press ENTER. This command displays the cache. If the
file is written correctly, the cache is similar to the following:
If the file does not populate the cache correctly, continue with
the next step.
Step three: Make sure that the LMHOSTS lookup is enabled on the Windows NT 4.0-based computer
If the file does not populate the cache correctly, make sure that
LMHOSTS lookup is enabled on the Windows NT 4.0-based computer. To do this,
follow these steps:
Click Start, point to
Settings, and then click Control
Panel.
Double-click Networks, click the
Protocols tab, and then double-click TCP/IP
Protocol.
Click the WINS Address tab, and then click
to select the Enable LMHOSTS Lookup check box.
Restart the computer.
Repeat the steps in the "Load the LMHOSTS file into the
cache" section.
If the file does not populate the cache correctly, make
sure that the LMHOSTS file is in the
%SystemRoot%\System32\Drivers\Etc folder and that
the file is formatted correctly.
For example, the file must be
formatted similar to the following example formatting:
Note There must be a total of 20 characters and spaces inside the
quotations marks (" ") for the Domain name and \0x1b entry.
Step four: Use the Ping command to test connectivity
When the file populates the cache correctly on each server, use
the Ping command on each server to test connectivity between the servers. To do
this, follow these steps:
Click Start, click Run,
type cmd, and then click OK.
At the command prompt, type Ping
Name_Of_Domain_Controller_You_Want_To_Connect_To,
and then press ENTER. If the Ping command does not work, make sure that the
correct IP addresses are listed in the LMHOSTS file.
At the command prompt, type net view
Name_Of_Domain_Controller_You_Want_To_Connect_To,
and then press ENTER. It is expected that you receive the following error
message:
System error 5 has occurred. Access is
denied
If the net view command returns the following error message or any other related
error message, make sure that the correct IP addresses are listed in the
LMHOSTS file:
System error 53 has occurred. The network
path was not found
Alternatively, Windows Internet Name Service (WINS) can be
configured to enable name resolution functionality without using a LMHOSTS
file. For more information about
how to use WINS for name resolution, click the following article number to view
the article in the Microsoft Knowledge Base:
185786
(http://support.microsoft.com/kb/185786/
)
Recommended practices for WINS
Typically, the Active Directory side of the trust configuration
has security settings that cause connectivity problems. However, the security
settings must be inspected on both sides of the trust.
Step one: View security settings on Windows 2000 Server and Windows Server 2003
In Windows 2000 Server and Windows Server 2003, the security
settings may be applied or configured by Group Policy, a local policy, or an
applied security template.
You must use the correct tools to
determine the current values of the security settings to avoid inaccurate
readings.
To obtain an accurate reading of the current security
settings, use the following methods:
In Windows 2000 Server, use the Security Configuration and
Analysis snap-in. For more information about how
to determine the current security policy on a Windows 2000-based computer,
click the following article number to view the article in the Microsoft
Knowledge Base:
258595
(http://support.microsoft.com/kb/258595/
)
Gpresult does not enumerate the resultant computer security policy
In Windows Server 2003, use either the Security
Configuration and Analysis snap-in, or the Resultant Set of Policy (RSoP)
snap-in.
For more information about how to use the
Resultant Set of Policy snap-in, click the following article number to view the
article in the Microsoft Knowledge Base:
323276
(http://support.microsoft.com/kb/323276/
)
How to install and use RSoP in Windows Server 2003
After you determine the current settings, you must identify the
policy that is applying the settings. For example, you must determine the Group
Policy in the Active Directory, or the local settings that set the security
policy.
In Windows Server 2003, the policy that sets the security
values is identified by the RSoP tool. However, in Windows 2000 you must view
the Group Policy and the local policy to determine the policy that contains the
security settings:
To view the Group Policy settings, you must enable logging
output for the Microsoft Windows 2000 Security Configuration Client during
Group Policy processing.
For more
information about how to enable logging output for the Microsoft Windows 2000
Security Configuration Client during Group Policy processing, click the
following article number to view the article in the Microsoft Knowledge Base:
245422
(http://support.microsoft.com/kb/245422/
)
How to enable logging for security configuration client processing in Windows 2000
View the Application log in Event Viewer and find Event ID
1000 and event ID 1202.
For more information about event ID
1000 and event ID 1202, click the following article number to view the article
in the Microsoft Knowledge Base:
319352
(http://support.microsoft.com/kb/319352/
)
Event ID 1000 and event ID 1202 are logged to the event log every five minutes in Windows 2000 Server
The following three sections identify the operating system and
list the security settings that you must verify for the operating system in the
information that you have collected:
Windows 2000
Make sure that the following settings are configured as
shown.
RestrictAnonymous:
Collapse this tableExpand this table
Additional restrictions for anonymous connections
"None. Rely on default permissions"
LM Compatibility:
Collapse this tableExpand this table
LAN Manager authentication level
"Send NTLM response
only"
SMB Signing, SMB Encrypting, or both:
Collapse this tableExpand this table
Digitally sign client communications
(always)
DISABLED
Digitally sign client communications (when it is
possible)
ENABLED
Digitally sign server communications
(always)
DISABLED
Digitally sign server communications (when it is
possible)
ENABLED
Secure channel: Digitally encrypt or sign secure channel data
(always)
DISABLED
Secure channel: Digitally encrypt secure channel data (when
it is possible)
DISABLED
Secure channel: Digitally sign secure channel data (when it
is possible)
DISABLED
Secure channel: Require strong (Windows 2000 or later)
session key
DISABLED
Windows Server 2003
Make sure that the following settings are configured as shown.
Network access: Do not allow anonymous enumeration of SAM
accounts
DISABLED
Network access: Do not allow anonymous enumeration of SAM
accounts and shares
DISABLED
Network access: Let Everyone permissions apply to anonymous
users
ENABLED
Network access: Named pipes can be accessed
anonymously
ENABLED
Network access: Restrict anonymous access to Named Pipes and
shares
DISABLED
Note By default, the value of the Network access: Allow anonymous SID/Name translation setting is DISABLED in Windows Server 2008. For more information,
click the following article number to view the article in the Microsoft
Knowledge Base:
942428
(http://support.microsoft.com/kb/942428/
)
Windows Server 2003 domain controllers let anonymous users resolve a security identifier (SID) to a user name
Network security: LAN Manager authentication
level
"Send NTLM response only"
SMB Signing, SMB Encrypting, or both:
Collapse this tableExpand this table
Microsoft network client: Digitally sign communications
(always)
DISABLED
Microsoft network client: Digitally sign communications (if
server agrees)
ENABLED
Microsoft network server: Digitally sign communications
(always)
DISABLED
Microsoft network server: Digitally sign communications (if
client agrees)
ENABLED
Domain member: Digitally encrypt or sign secure channel data
(always)
DISABLED
Domain member: Digitally encrypt secure channel data (when it
is possible)
ENABLED
Domain member: Digitally sign secure channel data (when it is
possible)
ENABLED
Domain member: Require strong (Windows 2000 or later) session
key
DISABLED
After the settings are configured correctly, you must restart
your computer. The security settings are not enforced until the computer is
restarted.
After the computer restarts, wait 10 minutes to make sure
that all security policies are applied and the effective settings are
configured. We recommend that you wait 10 minutes because Active Directory
policy updates occur every 5 minutes on a domain controller, and the update may
change the security setting values. After 10 minutes, use Security
Configuration and Analysis or another tool to examine the security settings in
Windows 2000 and Windows Server 2003.
Windows NT 4.0
Important This section, method, or task contains steps that tell you how to
modify the registry. However, serious problems might occur if you modify the
registry incorrectly. Therefore, make sure that you follow these steps
carefully. For added protection, back up the registry before you modify it.
Then, you can restore the registry if a problem occurs. For more information
about how to back up and restore the registry, click the following article
number to view the article in the Microsoft Knowledge Base:
322756
(http://support.microsoft.com/kb/322756/
)
How to back up and restore the registry in Windows
In Windows NT 4.0, the current security settings
must be verified by using the Regedt32 tool to view the registry. To do this,
follow these steps:
Click Start, click Run,
type regedt32, and then click
OK.
Expand the following registry subkeys, and then view the
value that is assigned to the RestrictAnonymous entry:
To verify the required user rights on a Windows 2000-based
computer, follow these steps:
Click Start, point to
Programs, point to Administrative Tools, and
then click Local Security Policy.
Expand Local Policies, and then click
User Rights Assignment.
In the right-pane, double-click Access this
computer from the network.
Click to select the Local Policy Setting
check box next to the Everyone group in the Assigned
to list, and then click OK.
Double-click Deny access to this computer from the
network.
Verify that there are no principle groups in the
Assigned to list, and then click OK. For
example, make sure that Everyone, Authenticated Users, and other groups, are
not listed.
Click OK, and then quit Local Security
Policy.
To verify the required user rights on a Windows Server
2003-based computer, follow these steps:
Click Start, point to
Administrative Tools, and then click Domain Controller
Security Policy.
Expand Local Policies, and then click
User Rights Assignment.
In the right-pane, double-click Access this
computer from the network.
Make sure that the Everyone group is in the Access
this computer from the network list. If the Everyone group is not
listed, follow these steps:
Click Add User or Group.
In the User and group names box, type
Everyone, and then click OK.
Double-click Deny access to this computer from the
network.
Verify that there are no principle groups in the
Deny access to this computer from the network list, and then
click OK. For example, make sure that Everyone, Authenticated
Users, and other groups, are not listed.
Click OK, and then close the Domain
Controller Security Policy.
To verify the required user rights on a Windows NT Server
4.0-based computer, follow these steps:
Click Start, point to
Programs, point to Administrative Tools, and
then click User Manager for Domains.
On the Policies menu, click User
Rights.
In the Right list, click Access
this computer from the network.
In the Grant to box, make sure that the
Everyone group is added. If the Everyone group is not added, follow these
steps:
Click Add.
In the Names list, click
Everyone, click Add, and then click
OK.
If a trust is set up between the domains, but you cannot add
principle user groups from one domain to the other because the dialog box does
not locate the other domain objects, the "Pre-Windows 2000 compatible access"
group may not have the correct membership.
On the Windows 2000-based
domain controllers and the Windows Server 2003-based domain controllers, make
sure that the required group memberships are configured.
To do this
on the Windows 2000-based domain controllers, follow these steps:
Click Start, point to
Programs, point to Administrative Tools, and
then click Active Directory Users and Computers.
Click Built in, and then double-click
Pre-Windows 2000 compatible access group.
Click the Members tab, and then make sure
that the Everyone group is in the Members list.
If the Everyone group is not in the
Members list, follow these steps:
Click Start, click
Run, type cmd, and then click
OK.
At the command prompt, type net localgroup
"Pre-Windows 2000 Compatible Access" everyone /add, and then press
ENTER.
To make sure that the required group memberships are configured
on the Windows Server 2003-based domain controllers, you must know if the
"Network access: Let Everyone permissions apply to anonymous users" policy
setting is disabled. If you do not know, use the Group Policy Object Editor to
determine the state of the "Network access: Let Everyone permissions apply to
anonymous users" policy setting. To do this, follow these steps:
Click Start, click Run,
type gpedit.msc, and then click
OK.
Expand the following folders:
Local Computer Policy Computer Configuration Windows Settings Security Settings Local Policies
Click Security Options, and then click
Network access: Let Everyone permissions apply to anonymous
users in the right pane.
Note if the value in the Security Setting
column is Disabled or Enabled.
To make sure that the required group memberships are configured
on the Windows Server 2003-based domain controllers, follow these steps:
Click Start, point to
Programs, point to Administrative Tools, and
then click Active Directory Users and Computers.
Click Built in, and then double-click
Pre-Windows 2000 compatible access group.
Click the Members tab.
If the Network access: Let Everyone permissions
apply to anonymous users policy setting is disabled, make sure that
the Everyone, Anonymous Logon group is in the Members list. If
the "Network access: Let Everyone permissions apply to anonymous users" policy
setting is enabled, make sure that the Everyone group is in the
Members list.
If the Everyone group is not in the
Members list, follow these steps:
Click Start, click
Run, type cmd, and then click
OK.
At the command prompt, type net localgroup
"Pre-Windows 2000 Compatible Access" everyone /add, and then press
ENTER.
Method five: Verify connectivity through network devices, such as firewalls,
switches, or routers
If you have received error messages that are similar to the
following error message and you have verified that the LMHOST files are
correct, the issue may be caused by a firewall, router or switch that has
blocked ports between the domain controllers:
No domain
controller could be contacted
To troubleshoot network devices, use
PortQry Command Line Port Scanner version 2.0 to test the ports between your
domain controllers.
For more
information about PortQry version 2, click the following article number to view
the article in the Microsoft Knowledge Base:
832919
(http://support.microsoft.com/kb/832919/
)
New features and functionality in PortQry version 2.0
For more information about how the ports must be
configured, click the following article number to view the article in the
Microsoft Knowledge Base:
179442
(http://support.microsoft.com/kb/179442/
)
How to configure a firewall for domains and trusts
Method six: Gather additional information to help troubleshoot the issue
If the previous methods did not help you resolve the issue,
collect the following additional information to help you troubleshoot the cause
of the issue:
Enable Netlogon logging on both domain controllers.
For more
information about how to complete Netlogon logging, click the following article
number to view the article in the Microsoft Knowledge Base:
109626
(http://support.microsoft.com/kb/109626/
)
Enabling debug logging for the Net Logon service
Capture a trace on both domain controllers at the same time
that the issue occurs.
For more
information about how to capture network traffic, click the following article
number to view the article in the Microsoft Knowledge Base:
812953
(http://support.microsoft.com/kb/812953/
)
How to use Network Monitor to capture network traffic
The following list of Group Policy objects (GPOs) provides
the location of the corresponding registry entry and the Group Policy in the
applicable operating systems:
Windows 2000 Group Policy: Computer
Configuration \ Windows Settings \ Security Settings \ Security Options
Additional restrictions for anonymous connections
Windows Server 2003 Group Policy: Computer
Configuration \ Windows Settings \ Security Settings \ Security Options Network
access: Do not allow anonymous enumeration of SAM accounts and shares
Windows Server 2003 Group Policy: Computer
Configuration \ Windows Settings \ Security Settings \ Security Options Network
access: Do not allow anonymous enumeration of SAM accounts and shares
Windows Server 2003 Group Policy: Computer
Configuration \ Windows Settings \ Security Settings \ Security Options Network
access: Let Everyone permissions apply to anonymous users
The LM Compatibility GPO:
Windows NT, Windows 2000, and Windows Server 2003
registry location:
Windows 2000 Group Policy: Computer
Configuration \ Windows Settings \ Security Settings \ Security Options: LAN
Manager authentication level
Windows Server 2003 Group Policy: Computer
Configuration \ Windows Settings \ Security Settings \ Security Options\Network
security: LAN Manager authentication level
The EnableSecuritySignature (client) GPO:
Windows 2000 and Windows Server 2003 registry location:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanManWorkstation\Parameters\EnableSecuritySignature
Windows 2000 Group Policy: Computer
Configuration \ Windows Settings \ Security Settings \ Security Options:
Digitally sign client communication (when
possible)
Windows Server 2003 Group Policy: Computer
Configuration \ Windows Settings \ Security Settings \ Security Options \
Microsoft network client: Digitally sign communications (if server
agrees)
The RequireSecuritySignature (client) GPO:
Windows 2000 and Windows Server 2003 registry location:
Windows 2000 Group Policy: Computer
Configuration \ Windows Settings \ Security Settings \ Security Options:
Digitally sign client communication (always)
Windows Server 2003: Computer Configuration \
Windows Settings \ Security Settings \ Security Options\ Microsoft network
client: Digitally sign communications (always)
Windows 2000 Group Policy: Secure channel:
Require strong (Windows 2000 or later) session key
Windows Server 2003 Group Policy: Domain
member: Require strong (Windows 2000 or later) session key
Windows Server 2008
On a domain controller that is running Windows Server 2008, the
default behavior of the Allow cryptography algorithms compatible with Windows NT 4.0 policy setting may cause a problem. This setting prevents both
Windows operating systems and third-party clients from using weak cryptography
algorithms to establish NETLOGON security channels to Windows Server 2008-based
domain controllers.
For more information, click the following article number to view the article in
the Microsoft Knowledge Base:
942564
(http://support.microsoft.com/kb/942564/
)
When a Windows NT 4.0-based computer tries to use the NETLOGON service to establish a security channel to a Windows Server 2008-based domain controller, the operation may fail
For more information, click the
following article numbers to view the articles in the Microsoft Knowledge Base:
257942
(http://support.microsoft.com/kb/257942/
)
Error Message: Unable to browse the selected domain because the following error occurred...
246261
(http://support.microsoft.com/kb/246261/
)
How to use the RestrictAnonymous registry value in Windows 2000
258595
(http://support.microsoft.com/kb/258595/
)
Gpresult does not enumerate the Resultant Computer security policy
823659
(http://support.microsoft.com/kb/823659/
)
Client, service, and program incompatibilities that may occur when you modify security settings and user rights assignments
278259
(http://support.microsoft.com/kb/278259/
)
Everyone group does not include anonymous security identifier