Dr. Dobb's is part of the Informa Tech Division of Informa PLC

This site is operated by a business or businesses owned by Informa PLC and all copyright resides with them. Informa PLC's registered office is 5 Howick Place, London SW1P 1WG. Registered in England and Wales. Number 8860726.


Channels ▼
RSS

Tools

Delphi 4 and the WNet API


Dec98: Workgroups versus Domains

Dr. Dobb's Journal December 1998

Workgroups versus Domains


Windows NT and Windows 95 provide two different ways of logically grouping a network full of computers. These logical groups are the containers that are listed when the Microsoft Windows Network container is enumerated.

Workgroups are purely a naming convention. There is no shared authentication information between computers, each machine maintains its own Security Account Manager (SAM), which contains the account information visible in the User Manager. Think of this like a crowded party where folks from, say, Dallas hang out in one corner and folks from Boston in another. They are all in the same room but have grouped themselves for distinction.

A domain -- not to be confused with the TCP/IP concept by the same name -- is a means of keeping distinct, replicated, and shared authentication information. The computers themselves are still in a flat namespace, but they will attempt to validate user logins based upon the systems domain membership. A domain's authentication information is stored on NT Servers designated as primary or backup domain controllers.

A workstation's SAM does not disappear when that machine is a member of a domain. However, by default, logins attempt to authenticate against the domain controller. Interactive logins can still use only the local SAM by selecting the local computer name from the "Domain" list on the login dialog.

As far as enumerating network containers is concerned, workgroups and domains are, as far as I can tell, indistinguishable. Comments to the contrary are invited since it would sometimes be useful to know when different authentication information is required when connecting via domain-based accounts. Both contain computers as connectable objects.

The information provided during an enumeration of containers is derived from an internal browse info table. The mechanisms that support this table are truly Byzantine. If you are interested in reading up on the arcana of browsing, Chapter 3 of the Window NT Server 4.0 Resource Kit Windows NT Server Networking Guide has everything that you could ever hope, or fear, to know.

The Universal Naming Convention (UNC) is a useful abstraction for connecting to resources in a Windows network. These names take the familiar form \\MACHINE though they are most often used in conjunction with a shared resource name from the target machine, for example \\MACHINE\SHARE. As in most network naming conventions, a machine name must be unique, whether using workgroups or domains. In fact, if you are using IP, you can create a valid UNC using an IP address, \\11.22.33.44\ SHARE, for example. This is very useful if, for some reason, you can't browse to the intended target host (say it with me: Byzantine).

-- F.L.


Copyright © 1998, Dr. Dobb's Journal

Related Reading


More Insights






Currently we allow the following HTML tags in comments:

Single tags

These tags can be used alone and don't need an ending tag.

<br> Defines a single line break

<hr> Defines a horizontal line

Matching tags

These require an ending tag - e.g. <i>italic text</i>

<a> Defines an anchor

<b> Defines bold text

<big> Defines big text

<blockquote> Defines a long quotation

<caption> Defines a table caption

<cite> Defines a citation

<code> Defines computer code text

<em> Defines emphasized text

<fieldset> Defines a border around elements in a form

<h1> This is heading 1

<h2> This is heading 2

<h3> This is heading 3

<h4> This is heading 4

<h5> This is heading 5

<h6> This is heading 6

<i> Defines italic text

<p> Defines a paragraph

<pre> Defines preformatted text

<q> Defines a short quotation

<samp> Defines sample computer code text

<small> Defines small text

<span> Defines a section in a document

<s> Defines strikethrough text

<strike> Defines strikethrough text

<strong> Defines strong text

<sub> Defines subscripted text

<sup> Defines superscripted text

<u> Defines underlined text

Dr. Dobb's encourages readers to engage in spirited, healthy debate, including taking us to task. However, Dr. Dobb's moderates all comments posted to our site, and reserves the right to modify or remove any content that it determines to be derogatory, offensive, inflammatory, vulgar, irrelevant/off-topic, racist or obvious marketing or spam. Dr. Dobb's further reserves the right to disable the profile of any commenter participating in said activities.

 
Disqus Tips To upload an avatar photo, first complete your Disqus profile. | View the list of supported HTML tags you can use to style comments. | Please read our commenting policy.