The information in this article applies to:
SUMMARYThe Microsoft Windows NT 4.0 Resource Kit contains a very powerful command-line utility to test secure channels between Windows NT computers that are members of a domain, and between domain controllers that are trusting other domains. Below is a detailed discussion. MORE INFORMATIONNLTEST OverviewNltest.exe is a very powerful command-line utility that can be used to test trust relationships and the state of domain controller replication in a Windows NT domain. A domain consist of domain controllers in which there is a single primary domain controller (PDC) and zero or more backup domain controllers (BDC).When the word Trust is used in the context of Windows NT, it describes a relationship between two Windows NT domains. Each domain involved has either the role of being the trusting domain, or the trusted domain. For any given trust relationship, there is a single discreet communication channel between each domain controller in the trusting domain and a domain controller in the trusted domain. For example if Domain "A" trusts Domain "B", then "B" is the trusted domain, and "A" is the trusting domain. In a another example, suppose Domain "I" trusts Domain "J", and Domain "J" trusts Domain "I". In this example, there are two distinct trust relationships between the domain controllers. Often, this is called the Complete Trust mode, or a 2-way trust. Yet, for secure channel diagnosis, it is best to think of these as two separate secure channels, between each domain controller in the trusting domain and a domain controller in the trusted domain. Trust relationships are not transitive. For example, suppose Domain "X" trusts Domain "Y", which in turn trusts Domain "Z". This does NOT imply Domain "X" trusts Domain "Z". The reason for this is that the administrator in each domain must grant explicit permission on either side of the trust relationship for it to take place. Another form of trust relationship is sometimes referred to as an "implicit" trust. In a single domain model, or in an environment where there are no "explicit" trust relationships between any two domains, the "implicit" trust relationship is active and functionally needed. This implicit trust exists between all computers running Windows NT that are members of a domain and a domain controller in their domain. Explicit trust relationships are established through User Manager For Domains. Implicit trust relationships are established by becoming a member of a domain. Nltest.exe can be used to test the trust relationship between a computer running Windows NT that is a member of a domain and a domain controller where its machine account resides. NLTEST can also verify the trust between the BDCs in a domain and their PDC. In domains where an explicit trust has been defined, NLTEST can test the trust relationship between all domain controllers in the trusting domain and a domain controller in the trusted domain. These sessions of communication are called Secure Channels and are used to authenticate Windows NT machine accounts. They are also used to authenticate User Accounts when a remote user connects to a network resource and the user account exists in a trusted Domain. This is called Pass-Through Authentication, and it allows a computer running Windows NT that has joined a domain to have access to the User Account Database in its domain and in any Trusted Domains. Nltest.exe can use the Browser Service to enumerate domain controllers. Therefore, if browsing is not working correctly, Nltest.exe may produce inconsistent results. The computer where Nltest.exe is run and those providing the browsing services need to share the same protocols that are used by the domain controllers to carry out their domain activity. In addition, the enumeration of the specified computer and domain names depend on the status of name-resolution, such as WINS server replication, IPX router configuration, or NetBEUI bridging. All of these trust relationships, and domain synchronization, can be monitored, tested, and verified by Nltest.exe. Sample Output Obtained by Typing "NLTEST.EXE" Without the QuotesC:\NTRESKIT>nltestUsage: nltest [/OPTIONS] /SERVER:<ServerName> - Specify <ServerName> Additional Comments and Descriptions of the Nltest.exe Switches/SERVER:<ServerName>: Remotes the Nltest.exe command to the specified server. If this switch is not specified, the command is run from the local computer. Example Output from Nltest.exeAs an example, suppose the TESTD domain trusts the ESS domain, and a computer running Windows NT Workstation called TEST3 is a member of the TESTD domain.NLTEST can be used to show this trust relationship.
To determine the domain controllers in the TESTD domain:
To determine the domain controllers in the ESS domain:
Below are the secure channels between each domain controller in TESTD and a DC in the ESS domain.
The workstation that is a member of the TESTD domain has an implicit trust with a domain controller.
To determine if a domain controller can authenticate a user account:
NLTEST can be used to find a trusted domain that has a given user account.
To verify the status of BDC synchronization:
Nltest.exe can also be used to synchronize the accounts database from a command line or a batch job. To run the utility to synchronize the domain from a PDC, type: C:\ nltest /PDC_Repl To run the utility from a member server, backup domain controller, or Windows NT workstation, type C:\ nltest /Server:<PDCName> /PDC_Repl where PDCName is the actual name of the PDC, not the name of the domain) You will see the successful synchronization events in Event Viewer on the primary domain controller, as well as the backup domain controllers. Additional query words: reskit secure channel
Keywords : kbenv kbnetwork ntdomain NTSrvWkst |
Last Reviewed: January 27, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |