2000users.html   [plain text]


<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Chapter 7. A Distributed 2000 User Network</title><link rel="stylesheet" href="samba.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.64.1"><link rel="home" href="index.html" title="Samba-3 by Example"><link rel="up" href="index.html" title="Samba-3 by Example"><link rel="previous" href="happy.html" title="Chapter 6. Making Users Happy"><link rel="next" href="migration.html" title="Chapter 8. Migrating NT4 Domain to Samba-3"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Chapter 7. A Distributed 2000 User Network</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="happy.html">Prev</a> </td><th width="60%" align="center"> </th><td width="20%" align="right"> <a accesskey="n" href="migration.html">Next</a></td></tr></table><hr></div><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="2000users"></a>Chapter 7. A Distributed 2000 User Network</h2></div></div><div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="sect1"><a href="2000users.html#id2543102">Introduction</a></span></dt><dd><dl><dt><span class="sect2"><a href="2000users.html#id2543142">Assignment Tasks</a></span></dt></dl></dd><dt><span class="sect1"><a href="2000users.html#id2543206">Dissection and Discussion</a></span></dt><dd><dl><dt><span class="sect2"><a href="2000users.html#id2543493">Technical Issues</a></span></dt><dt><span class="sect2"><a href="2000users.html#id2544651">Political Issues</a></span></dt></dl></dd><dt><span class="sect1"><a href="2000users.html#id2544669">Implementation</a></span></dt><dd><dl><dt><span class="sect2"><a href="2000users.html#id2548341">Key Points Learned</a></span></dt></dl></dd><dt><span class="sect1"><a href="2000users.html#id2548408">Questions and Answers</a></span></dt></dl></div><p>There is something indeed mystical about things that are
      big. Large networks exhibit a certain magnetism and exude a sense of
      importance that obscures reality. You and I know that it is no more
      difficult to secure a large network than it is a small one. We all
      know that over and above a particular number of network clients, the
      rules no longer change; the only real dynamic is the size of the domain
      (much like a kingdom) over which the network ruler (oops, administrator)
      has control. The real dynamic then transforms from the technical to the
      political. Then again, that point is often reached well before the
      kingdom (or queendom) grows large.</p><p>If you have systematically worked your way to this chapter, hopefully you
      have found some gems and techniques that are applicable in your
      world. The network designs you have worked with in this book with have their
      strong points as well as weak ones. That is to be expected given that
      they are based on real business environments, excepting that the facts
      have been moulded to serve the purposes of this book.</p><p>This chapter is intent on wrapping up issues that are central to
    implementation and design of progressively larger networks. Are you ready
    for this chapter? Good, it is time to move on.</p><p>In previous chapters, you made the assumption that your network
      administration staff need detailed instruction right down to the
      nuts-and-bolts of implementing the solution. That's is still the case,
      but they have graduated now. You decide to document only those issues,
      methods and techniques that are new or complex. Routine tasks such as
      implementing a DNS or a DHCP server are under control. Even the basics of
      Samba are largely under control. So in this section you focus on the
      specifics of implementing LDAP changes, Samba changes, and approach and
      design of the solution and its deployment.</p><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2543102"></a>Introduction</h2></div></div><div></div></div><p>
	Abmas is a miracle company. Most businesses would have collapsed under
	the weight of rapid expansion that this company has experienced. Samba 
	is flexible, so there is no need to reinstall the whole operating 
	system just because you need to implement a new network design. In fact, 
	you can keep an old server running right up to the moment of cut-over 
	and then do a near-live conversion. There is no need to reinstall a 
	Samba server just to change the way your network should function.
	</p><p><a class="indexterm" name="id2543129"></a>
	Network growth is common to all organizations. In this exercise,
	your preoccupation is with the mechanics of implementing Samba and
	LDAP so that network users on each network segment can work
        without impediment.</p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2543142"></a>Assignment Tasks</h3></div></div><div></div></div><p>
	  Starting with the configuration files for the server called
	  <tt class="constant">MASSIVE</tt> in Chapter 6, you now deal with the
	  issues that are particular to large distributed networks. Your task
	  is simple  identify the challenges, consider the 
	  alternatives, and then design and implement a solution.</p><p><a class="indexterm" name="id2543164"></a>
	  Remember, you have users based in London (UK), Los Angeles,
	  Washington DC, and three buildings in New York. A significant portion
	  of your workforce have notebook computers and roam all over the
	  world. Some dial into the office, others use VPN connections over the
	  Internet and others just move between buildings.</p><p>What do you say to an employee who normally uses a desktop
	  system but must spend six weeks on the road with a notebook computer?
	  She is concerned over email access and how to keep co-workers current
	  with changing documents.</p><p>To top it all off, you have one network support person and one 
  	  Help desk person based in London, a single person dedicated to all 
	  network operations in Los Angeles, five staff for user administration 
	  and Help desk in New York, plus one <span class="emphasis"><em>floater</em></span> for 
	  Washington DC.</p><p>You have outsourced all desktop deployment and management to
	  DirectPointe,Inc. Your concern is server maintenance and third-level
	  support. Build a plan and show what must be done.</p></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2543206"></a>Dissection and Discussion</h2></div></div><div></div></div><p><a class="indexterm" name="id2543213"></a><a class="indexterm" name="id2543221"></a>
	In the previous chapter, you implemented an LDAP server that provided the
	<i class="parameter"><tt>passdb backend</tt></i> for the Samba servers. You
	explored ways to accelerate Windows desktop profile handling and you
	took control of network performance.
	</p><p><a class="indexterm" name="id2543242"></a><a class="indexterm" name="id2543250"></a><a class="indexterm" name="id2543258"></a><a class="indexterm" name="id2543265"></a>
	The implementation of an LDAP-based passdb backend (known as
	<span class="emphasis"><em>ldapsam</em></span> in Samba parlance), or some form of database
        that can be distributed, is essential to permit the deployment of Samba
	Primary and Backup Domain Controllers (PDC/BDCs). You see, the problem
	is that the <span class="emphasis"><em>tdbsam</em></span> style passdb backend does not
	lend itself to being replicated. The older plain-text-based
	<span class="emphasis"><em>smbpasswd</em></span> style passdb backend can be replicated
	using a tool such as <span><b class="command">rsync</b></span>, but
	<span class="emphasis"><em>smbpasswd</em></span> suffers the drawback that it does not
	support the range of account facilities demanded by modern network
	managers.</p><p><a class="indexterm" name="id2543306"></a><a class="indexterm" name="id2543314"></a>
	The new <span class="emphasis"><em>tdbsam</em></span> facility supports functionality
        that is similar to an <span class="emphasis"><em>ldapsam</em></span>, but the lack of
	distributed infrastructure sorely limits the scope for its
	deployment. This does raise the following questions: "Why can't I just use
	an XML based backend, or for that matter, why not use an SQL based
	backend?" "Is support for these tools broken?" No. Answers to these
	questions require a bit of background.</p><p><a class="indexterm" name="id2543339"></a><a class="indexterm" name="id2543347"></a><a class="indexterm" name="id2543355"></a><a class="indexterm" name="id2543363"></a>
	<span class="emphasis"><em>What is a directory?</em></span> A directory is a
	collection of information regarding objects that can be accessed to
	rapidly find information that is relevant in a particular and
	consistent manner. A directory differs from a database in that it is
	generally more often searched (read) than updated. As a consequence, the
	information is organized to facilitate read access rather than to
	support transaction processing.</p><p><a class="indexterm" name="id2543384"></a><a class="indexterm" name="id2543396"></a><a class="indexterm" name="id2543404"></a><a class="indexterm" name="id2543412"></a>
	The Lightweight Directory Access Protocol (LDAP) differs
	considerably from a traditional database. It has a simple search
	facility that uniquely makes a highly preferred mechanism for managing
	user identities. LDAP provides a scalable mechanism for distributing
	the data repository and for keeping all copies (slaves) in sync with
	the master repository.</p><p><a class="indexterm" name="id2543429"></a><a class="indexterm" name="id2543437"></a><a class="indexterm" name="id2543445"></a>
	Samba is a flexible and powerful file and print sharing
	technology. It can use many external authentication sources and can be
	part of a total authentication and identity management
	infrastructure. The two most important external sources for large sites
        are Microsoft Active Directory and LDAP. Sites that specifically wish to
	avoid the proprietary implications of Microsoft Active Directory
	naturally gravitate toward OpenLDAP.</p><p><a class="indexterm" name="id2543464"></a>
	In Chapter 6, you had to deal with a locally routed
	network. All deployment concerns focused around making users happy,
	and that simply means taking control over all network practices and
	usage so that no one user is disadvantaged by any other. The real
	lesson is one of understanding that no matter how much network
	bandwidth you provide, bandwidth remains a precious resource.</p><p>In this chapter, you must now consider how the overall network must
	function. In particular, you must be concerned with users who move
        between offices. You must take into account the way users need to
	access information globally. And you must make the network robust
	enough so that it can sustain partial breakdown without causing loss of
        productivity.</p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2543493"></a>Technical Issues</h3></div></div><div></div></div><p>There are at least three areas that need to be addressed as you
	  approach the challenge of designing a network solution for the newly
	  expanded business. These are:</p><div class="itemizedlist"><ul type="disc"><li><p><a class="indexterm" name="id2543510"></a>
	      User needs such as mobility and data access</p></li><li><p>The nature of Windows networking protocols</p></li><li><p>Identity management infrastructure needs</p></li></ul></div><p>Let's look at each in turn.</p><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2543542"></a>User Needs</h4></div></div><div></div></div><p>The new company has three divisions. Staff for each division
	    are spread across the company. Some staff are office-bound and
	    some are mobile users. Mobile users travel globally. Some spend
	    considerable periods working in other offices. Everyone wants to be
	    able to work without constraint of productivity.</p><p>The challenge is not insignificant. In some parts of the world,
	    even dial-up connectivity is poor, while in other regions political
	    encumbrances severely curtail user needs. Parts of the global
	    Internet infrastructure remain shielded-off for reasons outside 
	    the scope of this discussion.</p><p><a class="indexterm" name="id2543566"></a>
	    Decisions must be made regarding where data is to be stored, how
	    it will be replicated (if at all), and what the network bandwidth
	    implications are. For example, one decision that can be made is
	    to give each office its own master file storage area that can be
	    synchronized to a central repository in New York. This would permit
	    global data to be backed up from a single location. The
	    synchronization tool could be <span><b class="command">rsync,</b></span> run via a
	    cron job. Mobile users may use off-line file storage under Windows
	    XP Professional. This way, they can synchronize all files that have
	    changed since each logon to the network.</p><p><a class="indexterm" name="id2543593"></a><a class="indexterm" name="id2543605"></a>
	    No matter which way you look at this, the bandwidth requirements
	    for acceptable performance are substantial even if only 10 percent of
	    staff are global data users. A company with 3500 employees
	    and 280 of those were mobile users, and who used a similarly distributed
	    network, found they needed at least 2 Megabit/sec connectivity
	    between the UK and US offices. Even over 2 Mb/s bandwidth, this
	    company abandoned any attempt to run roaming profile usage for
	    mobile users. At that time, the average roaming profile took 480
	    Kbytes, while today the minimum Windows XP Professional roaming
	    profile involves a transfer of over 750 Kbytes from the profile
	    server to/from the client.</p><p><a class="indexterm" name="id2543628"></a>
	    Obviously then, user needs and wide-area practicalities
	    dictate the economic and technical aspects of your network
	    design as well as for standard operating procedures.</p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2543643"></a>The Nature of Windows Networking Protocols</h4></div></div><div></div></div><p><a class="indexterm" name="id2543650"></a>
	    Network logons that include roaming profile handling requires
	    from 140 Kbytes to 2 Mbytes. The inclusion of support for a minimal
	    set of common desktop applications can push the size of a complete
	    profile to over 15 Mbytes. This has substantial implications so far
	    as location of user profiles is concerned. Additionally, it is a
	    significant factor in determining the nature and style of mandatory
	    profiles that may be enforced as part of a total service level
	    assurance program that might be implemented.</p><p><a class="indexterm" name="id2543674"></a><a class="indexterm" name="id2543682"></a>
	    One way to reduce the network bandwidth impact of user logon
	    traffic is through folder redirection. In Chapter 6, you
	    implemented this in the new Windows XP Professional standard
	    desktop configuration. When desktop folders such as <span class="guimenu">My
	    Documents</span> are redirected to a network drive, they should
	    also be excluded from synchronization to/from the server on
	    logon/out. Redirected folders are analogous to network drive
	    connections.</p><p><a class="indexterm" name="id2543707"></a>
	    Of course, network applications should only be run off
	    local application servers. As a general rule, even with 2 Mbit/sec
	    network bandwidth, it would not make sense at all for someone who
	    is working out of the London office to run applications off a
	    server that is located in New York.</p><p><a class="indexterm" name="id2543723"></a>
	    When network bandwidth becomes a precious commodity (that is most
	    of the time), there is a significant demand to understand network
	    processes and to mould the limits of acceptability around the
	    constraints of affordability.</p><p>When a Windows NT4/200x/XP Professional client user logs onto
	    the network, several important things must happen.</p><div class="itemizedlist"><ul type="disc"><li><p><a class="indexterm" name="id2543748"></a>
		The client obtains an IP address via DHCP. (DHCP is
		necessary so that users can roam between offices.)</p></li><li><p><a class="indexterm" name="id2543764"></a><a class="indexterm" name="id2543772"></a>
		The client must register itself with the WINS and/or DNS
		server.</p></li><li><p><a class="indexterm" name="id2543788"></a>
		The client must locate the closest Domain Controller.</p></li><li><p>The client must log onto a Domain Controller and obtain as
		part of that process the location of the user's profile, load
		it, connect to redirected folders, and establish all network
		drive and printer connections.</p></li><li><p>The Domain Controller must be able to resolve the user's
		credentials before the logon process is fully implemented.</p></li></ul></div><p>Given that this book is about Samba and the fact that it
	    implements the Windows NT4 style domain semantics, it makes little
	    sense to compare Samba with Microsoft Active Directory insofar as
	    the logon protocols and principles of operation are
	    concerned. The following information pertains exclusively to the
	    interaction between a Windows XP Professional workstation and a
	    Samba-3.0.2 server. In the discussion that follows, use is made of
	    DHCP and WINS.</p><p>As soon as the Windows workstation starts up, it obtains an
	    IP address. This is immediately followed by registration of its
	    name both by broadcast and Unicast registration that is directed
	    at the WINS server.</p><p><a class="indexterm" name="id2543843"></a><a class="indexterm" name="id2543850"></a><a class="indexterm" name="id2543862"></a>
	    Given that the client is already a Domain Member, it then sends
  	    a directed (Unicast) request to the WINS server seeking the list of
	    IP addresses for domain controllers (NetBIOS name type 0x1C). The
	    WINS server replies with the information requested.</p><p><a class="indexterm" name="id2543878"></a><a class="indexterm" name="id2543889"></a><a class="indexterm" name="id2543897"></a>
	    The client sends two netlogon mailslot broadcast requests
	    to the local network and to each of the IP addresses returned by
	    the WINS server. Whichever answers this request first appears to
	    be the machine that the Windows XP client attempts to use to
	    process the network logon. The mailslot messages use UDP broadcast
	    to the local network and UDP Unicast directed at each machine that
	    was listed in the WINS server response to a request for the list of
	    Domain Controllers.</p><p><a class="indexterm" name="id2543916"></a><a class="indexterm" name="id2543928"></a><a class="indexterm" name="id2543936"></a>
	    The logon process begins with negotiation of the SMB/CIFS
	    protocols that are to be used; this is followed by an exchange of
	    information that ultimately includes the client sending the
	    credentials with which the user is attempting to logon. The logon
	    server must now approve the further establishment of the
	    connection, but that is a good point to halt for now. The priority
	    here must center around identification of network infrastructure
	    needs. A secondary fact we need to know is, what happens when
	    local Domain Controllers fail or break?</p><p><a class="indexterm" name="id2543957"></a><a class="indexterm" name="id2543965"></a><a class="indexterm" name="id2543972"></a><a class="indexterm" name="id2543980"></a>
	    Under most circumstances, the nearest Domain Controller
	    responds to the netlogon mailslot broadcast. The exception to this
	    norm occurs when the nearest Domain Controller is too busy or is out
	    of service. Herein lies an important fact. This means it is
	    important that every network segment should have at least two
	    Domain Controllers. Since there can be only one Primary Domain
	    Controller (PDC), all additional Domain Controllers are by definition
	    Backup Domain Controllers (BDCs).</p><p><a class="indexterm" name="id2544000"></a><a class="indexterm" name="id2544008"></a>
	    The provision of sufficient servers that are BDCs is an
	    important design factor. The second important design factor
	    involves how each of the BDCs obtains user authentication
	    data. That is the subject of the next section as it involves key
	    decisions regarding Identity Management facilities.</p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2544024"></a>Identity Management Needs</h4></div></div><div></div></div><p><a class="indexterm" name="id2544031"></a><a class="indexterm" name="id2544039"></a><a class="indexterm" name="id2544047"></a><a class="indexterm" name="id2544055"></a>
	    Network managers recognize that in large organizations users
	    generally need to be given resource access based on needs, while
	    being excluded from other resources for reasons of privacy. It is,
	    therefore, essential that all users identify themselves at the
	    point of network access. The network logon is the principal means
	    by which user credentials are validated and filtered, and appropriate
	    rights and privileges are allocated.</p><p><a class="indexterm" name="id2544074"></a><a class="indexterm" name="id2544082"></a><a class="indexterm" name="id2544090"></a>
	    Unfortunately, network resources tend to have their own Identity 
	    Management facilities, the quality and manageability of which varies 
	    from quite poor to exceptionally good. Corporations that use a mixture 
	    of systems soon discover that until recently, few systems were 
	    designed to interoperate. For example, UNIX systems each have an 
	    independent user database. Sun Microsystems developed a facility that 
	    was originally called <tt class="constant">Yellow Pages</tt>, and was renamed 
	    when a telephone company objected to the use of its trademark. 
	    What was once called <tt class="constant">Yellow Pages</tt> is today known 
	    as <tt class="constant">Network Information System</tt> (NIS).</p><p><a class="indexterm" name="id2544122"></a>
	    NIS gained a strong following throughout the UNIX/VMS space in a
	    short period of time and retained that appeal and use
	    for over a decade. Security concerns as well as inherent limitations
	    have caused it to enter its twilight. NIS did not gain widespread
	    appeal outside of the UNIX world and was not universally
	    adopted. Sun updated this to a more secure implementation called
	    NIS+, but even it has fallen victim to changing demands as the
	    demand for directory services that can be coupled with other
	    information systems is catching on.</p><p><a class="indexterm" name="id2544153"></a><a class="indexterm" name="id2544161"></a><a class="indexterm" name="id2544168"></a>
	    Nevertheless, both NIS and NIS+ continue to hold ground in
	    business areas where UNIX still has major sway. Examples of
	    organizations that remain firmly attached to the use of NIS and
	    NIS+ includes large government departments, education institutions,
	    as well as large corporations that have a scientific or engineering
	    focus.</p><p><a class="indexterm" name="id2544186"></a><a class="indexterm" name="id2544194"></a>
	    Today's networking world needs a scalable, distributed Identity 
	    Management infrastructure, commonly called a directory. The most 
	    popular technologies today are Microsoft Active Directory service 
	    and a number of LDAP implementations.</p><p><a class="indexterm" name="id2544209"></a>
	    The problem of managing multiple directories has become a focal
	    point over the past decade. This has created a large market for
	    meta-directory products and services that allow organizations that
	    have multiple directories and multiple management and control
	    centers to provision information from one directory into
	    another. The attendant benefit to end users is the promise of
	    having to remember and deal with fewer login identities and
	    passwords.</p><p><a class="indexterm" name="id2544229"></a>
	    The challenge of every large network is to find the optimum
	    balance of internal systems and facilities for Identity
	    Management resources. How well the solution is chosen and
	    implemented has potentially significant impact on network bandwidth
	    and systems response needs.</p><p><a class="indexterm" name="id2544248"></a><a class="indexterm" name="id2544256"></a><a class="indexterm" name="id2544267"></a>
	    In Chapter 6, you implemented a single LDAP server for the
	    entire network. This may work for smaller networks, but almost
	    certainly fails to meet the needs of large and complex networks. The
	    following section documents how one may implement a single
	    master LDAP server, with multiple slave servers.</p><p>What is the best method for implementing master/slave LDAP
	    servers within the context of a distributed 2000 user network is a
	    question that remains to be answered.</p><p><a class="indexterm" name="id2544294"></a><a class="indexterm" name="id2544302"></a>
	    One possibility that has great appeal is to create one single
	    large distributed domain. The practical implications of this
	    design (see <a href="2000users.html#chap7net" title="Figure 7.1. Network Topology  2000 User Complex Design A">???</a>) demands the placement of
	    sufficient BDCs in each location. Additionally, network
	    administrators must make sure that profiles are not transferred
	    over the wide-area links, except as a totally unavoidable
	    measure. Network design must balance the risk of loss of user
	    productivity against the cost of network management and
	    maintenance.</p><p><a class="indexterm" name="id2544328"></a>
	    The network design in <a href="2000users.html#chap7net2" title="Figure 7.2. Network Topology  2000 User Complex Design B">???</a> takes the
	    approach that management of networks that are too remote to be
	    capable of being managed effectively from New York ought
	    to be given a certain degree of autonomy. With this rationale, the
	    Los Angeles and London networks, though fully integrated with that
	    on the east coast of the USA, each have their own domain name space
	    and can be independently managed and controlled. One of the key
	    drawbacks of this design is that it flies in the face of the
	    ability for network users to roam globally without some compromise
	    in how they may access global resources.</p><p><a class="indexterm" name="id2544367"></a>
	    Desk-bound users need not be negatively affected by this
	    design, since the use of interdomain trusts can be used to satisfy
	    the need for global data sharing.</p><p><a class="indexterm" name="id2544381"></a><a class="indexterm" name="id2544389"></a><a class="indexterm" name="id2544400"></a>
	    When Samba-3 is configured to use an LDAP backend, it stores the domain
	    account information in a directory entry. This account entry contains
	    the domain SID. An unintended but exploitable side effect is that
	    this makes it possible to operate with more than one PDC on a
	    distributed network.</p><p><a class="indexterm" name="id2544417"></a><a class="indexterm" name="id2544425"></a><a class="indexterm" name="id2544432"></a>
	    How might this peculiar feature be exploited? The answer is
	    simple. It is imperative that each network segment should have its
	    own WINS server. Major servers on remote network segments can be
	    given a static WINS entry in the <tt class="filename">wins.dat</tt> file
	    on each WINS server. This allows all essential data to be
	    visible from all locations. Each location would, however, function
	    as if it is an independent domain, while all sharing the same
	    domain SID. Since all domain account information can be stored in a
	    single LDAP backend, users have unfettered ability to
	    roam.</p><p><a class="indexterm" name="id2544459"></a><a class="indexterm" name="id2544471"></a>
	    This concept has not been exhaustively validated, though we can
	    see no reason why this should not work. The important facets
	    are: The name of the domain must be identical in all
	    locations. Each network segment must have its own WINS server. The
	    name of the PDC must be the same in all locations; this
	    necessitates the use of NetBIOS name aliases for each PDC so that
	    they can be accessed globally using the alias and not the PDC's
	    primary name. A single master LDAP server can be based in New York,
	    with multiple LDAP slave servers located on every network
	    segment. Finally, the BDCs should each use fail-over LDAP servers
	    that are in fact slave LDAP servers on the local segments.</p><p><a class="indexterm" name="id2544494"></a><a class="indexterm" name="id2544506"></a><a class="indexterm" name="id2544513"></a><a class="indexterm" name="id2544525"></a>
	    With a single master LDAP server, all network updates are
	    effected on a single server. In the event that this should become
	    excessively fragile or network bandwidth limiting, one could
	    implement a delegated LDAP domain. This is also known as a 
	    partitioned (or multiple partition) LDAP database
	    and as a distributed LDAP directory.</p><p>As the LDAP directory grows, it becomes increasingly important
	    that its structure is implemented in a manner that mirrors
	    organizational needs, so as to limit network update and
	    referential traffic. It should be noted that all directory
	    administrators must of necessity follow the same standard
	    procedures for managing the directory, as retroactive correction of
	    inconsistent directory information can be exceedingly difficult.</p><div class="figure"><a name="chap7net"></a><p class="title"><b>Figure 7.1. Network Topology  2000 User Complex Design A</b></p><div class="mediaobject"><img src="images/chap7-net-Ar.png" width="324" alt="Network Topology 2000 User Complex Design A"></div></div><div class="figure"><a name="chap7net2"></a><p class="title"><b>Figure 7.2. Network Topology  2000 User Complex Design B</b></p><div class="mediaobject"><img src="images/chap7-net2-Br.png" width="324" alt="Network Topology 2000 User Complex Design B"></div></div></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2544651"></a>Political Issues</h3></div></div><div></div></div><p>As organizations grow, the number of points of control increase
	  also. In a large distributed organization, it is important that the
	  Identity Management system must be capable of being updated from
	  many locations, and it is equally important that changes made should
	  become capable of being used in a reasonable period, typically
	  minutes rather than days (the old limitation of highly manual
	  systems).</p></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2544669"></a>Implementation</h2></div></div><div></div></div><p><a class="indexterm" name="id2544676"></a><a class="indexterm" name="id2544683"></a><a class="indexterm" name="id2544691"></a><a class="indexterm" name="id2544699"></a>
	Samba-3 has the ability to use multiple password (authentication
	and identity resolution) backends. The diagram in <a href="2000users.html#chap7idres" title="Figure 7.3. Samba and Authentication Backend Search Pathways">???</a> demonstrates how Samba uses winbind, LDAP,
	and NIS, the traditional system password database. The diagram only
	documents the mechanisms for authentication and identity resolution
	(obtaining a UNIX UID/GID) using the specific systems shown.
	</p><div class="figure"><a name="chap7idres"></a><p class="title"><b>Figure 7.3. Samba and Authentication Backend Search Pathways</b></p><div class="mediaobject"><img src="images/chap7-idresol.png" width="297" alt="Samba and Authentication Backend Search Pathways"></div></div><p><a class="indexterm" name="id2544766"></a><a class="indexterm" name="id2544774"></a><a class="indexterm" name="id2544782"></a><a class="indexterm" name="id2544790"></a><a class="indexterm" name="id2544797"></a><a class="indexterm" name="id2544805"></a><a class="indexterm" name="id2544813"></a>
	Samba is capable of using the <tt class="constant">smbpasswd</tt>,
	<tt class="constant">tdbsam</tt>, <tt class="constant">xmlsam</tt>,
	and <tt class="constant">mysqlsam</tt> authentication databases. The SMB
	passwords can, of course, also be stored in an LDAP ldapsam
	backend. LDAP is the preferred passdb backend for distributed network
	operations.</p><p><a class="indexterm" name="id2544842"></a>
	Additionally, it is possible to use multiple passdb backends
	concurrently as well as have multiple LDAP backends. As a result, one
	can specify a fail-over LDAP backend. The syntax for specifying a
	single LDAP backend in <tt class="filename">smb.conf</tt> is:
</p><pre class="screen">
...
passdb backend = ldapsam:ldap://master.abmas.biz
...
</pre><p>
	This configuration tells Samba to use a single LDAP server as shown in
	<a href="2000users.html#ch7singleLDAP" title="Figure 7.4. Samba Configuration to Use a Single LDAP Server">???</a>.
	</p><div class="figure"><a name="ch7singleLDAP"></a><p class="title"><b>Figure 7.4. Samba Configuration to Use a Single LDAP Server</b></p><div class="mediaobject"><img src="images/ch7-singleLDAP.png" width="297" alt="Samba Configuration to Use a Single LDAP Server"></div></div><p>
	<a class="indexterm" name="id2544919"></a><a class="indexterm" name="id2544930"></a>
	The addition of a fail-over LDAP server can simply be done by adding a
	second entry for the fail-over server to the single
	<i class="parameter"><tt>ldapsam</tt></i> entry as shown here (note the particular
	use of the double quotes):
</p><pre class="screen">
...
passdb backend = ldapsam:"ldap://master.abmas.biz \
	                  ldap://slave.abmas.biz"
...
</pre><p>
	This configuration tells Samba to use a master LDAP server, with fail-over to a slave server if necessary,
	as shown in <a href="2000users.html#ch7dualLDAP" title="Figure 7.5. Samba Configuration to Use a Dual (Fail-over) LDAP Server">???</a>.
	</p><div class="figure"><a name="ch7dualLDAP"></a><p class="title"><b>Figure 7.5. Samba Configuration to Use a Dual (Fail-over) LDAP Server</b></p><div class="mediaobject"><img src="images/ch7-fail-overLDAP.png" width="297" alt="Samba Configuration to Use a Dual (Fail-over) LDAP Server"></div></div><p>
      </p><p>Some folks have tried to implement this without the use of
	double quotes as shown above. This is the type of entry they had
	created:
</p><pre class="screen">
...
passdb backend = ldapsam:ldap://master.abmas.biz \
                 ldapsam:ldap://slave.abmas.biz
...
</pre><p>
	<a class="indexterm" name="id2545021"></a>
	The effect of this style of entry is that Samba lists the users
	that are in both LDAP databases. If both contain the same information,
	it results in each record being shown twice. This is, of course, not the
	solution desired for a fail-over implementation. The net effect of this
	configuration is shown in <a href="2000users.html#ch7dualadd" title="Figure 7.6. Samba Configuration to Use Dual LDAP Databases - Broken - Do Not Use!">???</a>
	</p><div class="figure"><a name="ch7dualadd"></a><p class="title"><b>Figure 7.6. Samba Configuration to Use Dual LDAP Databases - Broken - Do Not Use!</b></p><div class="mediaobject"><img src="images/ch7-dual-additive-LDAP.png" width="297" alt="Samba Configuration to Use Dual LDAP Databases - Broken - Do Not Use!"></div></div><p>
	If, however, each LDAP database contains unique information, this may 
	well be an advantageous way to effectively integrate multiple LDAP databases 
	into one seemingly contiguous directory. Only the first database will be updated.
	An example of this configuration is shown in <a href="2000users.html#ch7dualok" title="Figure 7.7. Samba Configuration to Use Two LDAP Databases - The result is additive.">???</a>.
        </p><div class="figure"><a name="ch7dualok"></a><p class="title"><b>Figure 7.7. Samba Configuration to Use Two LDAP Databases - The result is additive.</b></p><div class="mediaobject"><img src="images/ch7-dual-additive-LDAP-Ok.png" width="297" alt="Samba Configuration to Use Two LDAP Databases - The result is additive."></div></div><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
	When the use of ldapsam is specified twice, as shown here, it is imperative
	that the two LDAP directories must be disjoint. If the entries are for a
	master LDAP server as well as its own slave server, updates to the LDAP
	database may end up being lost or corrupted. You may safely use multiple
	LDAP backends only so long as both are entirely separate from each other.
	</p></div><p>It is assumed that the network you are working with follows in a
	pattern similar to what has been covered in Chapter 6. The following steps
        permit the operation of a Master/Slave OpenLDAP arrangement.</p><div class="procedure"><ol type="1"><li><p>
	    <a class="indexterm" name="id2545170"></a><a class="indexterm" name="id2545178"></a>
		Log onto the master LDAP server as <tt class="constant">root</tt>.
		You are about to change the configuration of the LDAP server, so it
		makes sense to temporarily halt it. Stop OpenLDAP from running on 
		SUSE Linux by executing:
</p><pre class="screen">
<tt class="prompt">root# </tt> rcldap stop
</pre><p>
		On Red Hat Linux, you can do this by executing:
</p><pre class="screen">
<tt class="prompt">root# </tt> service ldap stop
</pre><p>
		</p></li><li><p><a class="indexterm" name="id2545224"></a>
		Edit the <tt class="filename">/etc/openldap/slapd.conf</tt> file so it
		matches the content of <a href="2000users.html#ch7-LDAP-master" title="Example 7.1. LDAP Master Server Configuration File  /etc/openldap/slapd.conf">???</a>.
		</p></li><li><p>
		Create a file called <tt class="filename">admin-accts.ldif</tt> with the following contents:
</p><pre class="screen">
dn: cn=updateuser,dc=abmas,dc=biz
objectClass: person
cn: updateuser
sn: updateuser
userpaddword: not24get

dn: cn=sambaadmin,dc=abmas,dc=biz
objectClass: person
cn: sambaadmin
sn: sambaadmin
userpaddword: buttercup
</pre><p>
	</p></li><li><p>
		Add an account called &#8220;<span class="quote"><span class="emphasis"><em>updateuser</em></span></span>&#8221; to the master LDAP server
		as shown here:
</p><pre class="screen">
<tt class="prompt">root# </tt> slapadd -v -l admin-accts.ldif
</pre><p>
	</p></li><li><p><a class="indexterm" name="id2545300"></a><a class="indexterm" name="id2545308"></a>
		Change directory to a suitable place to dump the contents of the
		LDAP server. The dump file (and LDIF file) is used to preload
		the Slave LDAP server database. You can dump the database by executing:
</p><pre class="screen">
<tt class="prompt">root# </tt> slapcat -v -l LDAP-transfer-LDIF.txt
</pre><p>
		Each record is written to the file.	
		</p></li><li><p><a class="indexterm" name="id2545342"></a>
		Copy the file <tt class="filename">LDAP-transfer-LDIF.txt</tt> to the intended
		slave LDAP server. A good location could be in the directory 
		<tt class="filename">/etc/openldap/preload</tt>.
		</p></li><li><p>
		Log onto the slave LDAP server as <tt class="constant">root</tt>. You can
		now configure this server so the <tt class="filename">/etc/openldap/slapd.conf</tt>
		file matches the content of <a href="2000users.html#ch7-LDAP-slave" title="Example 7.2. LDAP Slave Configuration File  /etc/openldap/slapd.conf">???</a>.
		</p></li><li><p>
		Change directory to the location in which you stored the 
		<tt class="filename">LDAP-transfer-LDIF.txt</tt> file (<tt class="filename">/etc/openldap/preload</tt>).
		While in this directory, execute:
</p><pre class="screen">
<tt class="prompt">root# </tt> slapadd -v -l LDAP-transfer-LDIF.txt
</pre><p>
		If all goes well, the following output confirms that the data is being loaded
		as intended:
</p><pre class="screen">
added: "dc=abmas,dc=biz" (00000001)
added: "cn=sambaadmin,dc=abmas,dc=biz" (00000002)
added: "cn=updateuser,dc=abmas,dc=biz" (00000003)
added: "ou=People,dc=abmas,dc=biz" (00000004)
added: "ou=Groups,dc=abmas,dc=biz" (00000005)
added: "ou=Computers,dc=abmas,dc=biz" (00000006)
added: "uid=Administrator,ou=People,dc=abmas,dc=biz" (00000007)
added: "uid=nobody,ou=People,dc=abmas,dc=biz" (00000008)
added: "cn=Domain Admins,ou=Groups,dc=abmas,dc=biz" (00000009)
added: "cn=Domain Users,ou=Groups,dc=abmas,dc=biz" (0000000a)
added: "cn=Domain Guests,ou=Groups,dc=abmas,dc=biz" (0000000b)
added: "uid=bobj,ou=People,dc=abmas,dc=biz" (0000000c)
added: "sambaDomainName=MEGANET2,dc=abmas,dc=biz" (0000000d)
added: "uid=stans,ou=People,dc=abmas,dc=biz" (0000000e)
added: "uid=chrisr,ou=People,dc=abmas,dc=biz" (0000000f)
added: "uid=maryv,ou=People,dc=abmas,dc=biz" (00000010)
added: "cn=Accounts,ou=Groups,dc=abmas,dc=biz" (00000011)
added: "cn=Finances,ou=Groups,dc=abmas,dc=biz" (00000012)
added: "cn=PIOps,ou=Groups,dc=abmas,dc=biz" (00000013)
</pre><p>
		</p></li><li><p>
		Now start the LDAP server and set it to run automatically on system reboot
		by executing:
</p><pre class="screen">
<tt class="prompt">root# </tt> rcldap start
<tt class="prompt">root# </tt> chkconfig ldap on
</pre><p>
		On Red Hat Linux, you would execute the following:
</p><pre class="screen">
<tt class="prompt">root# </tt> service ldap start
<tt class="prompt">root# </tt> chkconfig ldap on
</pre><p>
	    <a class="indexterm" name="id2545511"></a><a class="indexterm" name="id2545519"></a><a class="indexterm" name="id2545527"></a>
		</p></li><li><p>
		Go back to the master LDAP server. Execute the following to start LDAP as well
		as <span><b class="command">slurpd</b></span>, the synchronization daemon, as shown here:
</p><pre class="screen">
<tt class="prompt">root# </tt> rcldap start
<tt class="prompt">root# </tt> chkconfig ldap on
<tt class="prompt">root# </tt> rcslurpd start
<tt class="prompt">root# </tt> chkconfig slurpd on
</pre><p>
	    <a class="indexterm" name="id2545581"></a>
		On Red Hat Linux, check the equivalent command to start <span><b class="command">slurpd</b></span>.
		</p></li><li><p><a class="indexterm" name="id2545602"></a>
		On the master ldap server you may now add an account to validate that replication
		is working. Assuming the configuration shown in Chapter 6, execute:
</p><pre class="screen">
<tt class="prompt">root# </tt> /var/lib/samba/sbin/smbldap-useradd.pl -a fruitloop
</pre><p>
		</p></li><li><p>
		On the slave LDAP server, change to the directory <tt class="filename">/var/lib/ldap</tt>.
		There should now be a file called <tt class="filename">replogfile</tt>. If replication worked
		as expected, the content of this file should be:
</p><pre class="screen">
time: 1072486403
dn: uid=fruitloop,ou=People,dc=abmas,dc=biz
changetype: modify
replace: sambaProfilePath
sambaProfilePath: \\MASSIVE\profiles\fruitloop
-
replace: sambaHomePath
sambaHomePath: \\MASSIVE\homes
-
replace: entryCSN
entryCSN: 2003122700:43:38Z#0x0005#0#0000
-
replace: modifiersName
modifiersName: cn=Manager,dc=abmas,dc=biz
-
replace: modifyTimestamp
modifyTimestamp: 20031227004338Z
-
</pre><p>
		</p></li><li><p>
		Given that this first slave LDAP server is now working correctly, you may now
		implement additional slave LDAP servers as required.
		</p></li></ol></div><div class="example"><a name="ch7-LDAP-master"></a><p class="title"><b>Example 7.1. LDAP Master Server Configuration File  <tt class="filename">/etc/openldap/slapd.conf</tt></b></p><pre class="screen">
include     /etc/openldap/schema/core.schema
include     /etc/openldap/schema/cosine.schema
include     /etc/openldap/schema/inetorgperson.schema
include     /etc/openldap/schema/nis.schema
include     /etc/openldap/schema/samba.schema

pidfile     /var/run/slapd/slapd.pid
argsfile    /var/run/slapd/slapd.args

database    ldbm
suffix      "dc=abmas,dc=biz"
rootdn      "cn=Manager,dc=abmas,dc=biz"

# rootpw = not24get
rootpw      {SSHA}86kTavd9Dw3FAz6qzWTrCOKX/c0Qe+UV

replica     host=lapdc.abmas.biz:389
            suffix="dc=abmas,dc=biz"
            binddn="cn=updateuser,dc=abmas,dc=biz"
            bindmethod=simple credentials=not24get

access to attrs=sambaLMPassword,sambaNTPassword
           by dn="cn=updateuser,dc=abmas,dc=biz" write
           by * none

replogfile  /var/lib/ldap/replogfile

directory   /var/lib/ldap

# Indices to maintain
index objectClass           eq
index cn                    pres,sub,eq
index sn                    pres,sub,eq
index uid                   pres,sub,eq
index displayName           pres,sub,eq
index uidNumber             eq
index gidNumber             eq
index memberUID             eq
index sambaSID              eq
index sambaPrimaryGroupSID  eq
index sambaDomainName       eq
index default               sub
</pre></div><div class="example"><a name="ch7-LDAP-slave"></a><p class="title"><b>Example 7.2. LDAP Slave Configuration File  <tt class="filename">/etc/openldap/slapd.conf</tt></b></p><pre class="screen">
include     /etc/openldap/schema/core.schema
include     /etc/openldap/schema/cosine.schema
include     /etc/openldap/schema/inetorgperson.schema
include     /etc/openldap/schema/nis.schema
include     /etc/openldap/schema/samba.schema

pidfile     /var/run/slapd/slapd.pid
argsfile    /var/run/slapd/slapd.args

database    ldbm
suffix      "dc=abmas,dc=biz"
rootdn      "cn=Manager,dc=abmas,dc=biz"

# rootpw = not24get
rootpw      {SSHA}86kTavd9Dw3FAz6qzWTrCOKX/c0Qe+UV

access to *
            by dn=cn=updateuser,dc=abmas,dc=biz write
            by * read

updatedn    cn=updateuser,dc=abmas,dc=biz
updateref   ldap://massive.abmas.biz

directory   /var/lib/ldap

# Indices to maintain
index objectClass           eq
index cn                    pres,sub,eq
index sn                    pres,sub,eq
index uid                   pres,sub,eq
index displayName           pres,sub,eq
index uidNumber             eq
index gidNumber             eq
index memberUID             eq
index sambaSID              eq
index sambaPrimaryGroupSID  eq
index sambaDomainName       eq
index default               sub
</pre></div><div class="example"><a name="ch7-massmbconfA"></a><p class="title"><b>Example 7.3. Primary Domain Controller smb.conf File  Part A</b></p><table class="simplelist" border="0" summary="Simple list"><tr><td># Global parameters</td></tr><tr><td> </td></tr><tr><td><i class="parameter"><tt>[global]</tt></i></td></tr><tr><td><a class="indexterm" name="id2545788"></a><i class="parameter"><tt>
					
				unix charset = LOCALE</tt></i></td></tr><tr><td><a class="indexterm" name="id2545804"></a><i class="parameter"><tt>
					
				workgroup = MEGANET2</tt></i></td></tr><tr><td><a class="indexterm" name="id2545820"></a><i class="parameter"><tt>
					
				passdb backend = ldapsam:ldap://massive.abmas.biz</tt></i></td></tr><tr><td><a class="indexterm" name="id2545837"></a><i class="parameter"><tt>
					
				username map = /etc/samba/smbusers</tt></i></td></tr><tr><td><a class="indexterm" name="id2545853"></a><i class="parameter"><tt>
					
				log level = 1</tt></i></td></tr><tr><td><a class="indexterm" name="id2545868"></a><i class="parameter"><tt>
					
				syslog = 0</tt></i></td></tr><tr><td><a class="indexterm" name="id2545883"></a><i class="parameter"><tt>
					
				log file = /var/log/samba/%m</tt></i></td></tr><tr><td><a class="indexterm" name="id2545899"></a><i class="parameter"><tt>
					
				max log size = 0</tt></i></td></tr><tr><td><a class="indexterm" name="id2545915"></a><i class="parameter"><tt>
					
				smb ports = 139 445</tt></i></td></tr><tr><td><a class="indexterm" name="id2545930"></a><i class="parameter"><tt>
					
				name resolve order = wins bcast hosts</tt></i></td></tr><tr><td><a class="indexterm" name="id2545947"></a><i class="parameter"><tt>
					
				time server = Yes</tt></i></td></tr><tr><td><a class="indexterm" name="id2545962"></a><i class="parameter"><tt>
					
				printcap name = CUPS</tt></i></td></tr><tr><td><a class="indexterm" name="id2545978"></a><i class="parameter"><tt>
					
				add user script = /var/lib/samba/sbin/smbldap-useradd.pl -m '%u'</tt></i></td></tr><tr><td><a class="indexterm" name="id2545995"></a><i class="parameter"><tt>
					
				delete user script = /var/lib/samba/sbin/smbldap-userdel.pl '%u'</tt></i></td></tr><tr><td><a class="indexterm" name="id2546012"></a><i class="parameter"><tt>
					
				add group script = /var/lib/samba/sbin/smbldap-groupadd.pl -p '%g'</tt></i></td></tr><tr><td><a class="indexterm" name="id2546028"></a><i class="parameter"><tt>
					
				delete group script = /var/lib/samba/sbin/smbldap-groupdel.pl '%g'</tt></i></td></tr><tr><td><a class="indexterm" name="id2546045"></a><i class="parameter"><tt>
					
				add user to group script = /var/lib/samba/sbin/</tt></i></td></tr><tr><td><i class="parameter"><tt>smbldap-groupmod.pl -m '%g' '%u'</tt></i></td></tr><tr><td><a class="indexterm" name="id2546068"></a><i class="parameter"><tt>
					
				delete user from group script = /var/lib/samba/sbin/</tt></i></td></tr><tr><td><i class="parameter"><tt>smbldap-groupmod.pl -x '%g' '%u'</tt></i></td></tr><tr><td><a class="indexterm" name="id2546092"></a><i class="parameter"><tt>
					
				set primary group script = /var/lib/samba/sbin/</tt></i></td></tr><tr><td><i class="parameter"><tt>smbldap-usermod.pl -g '%g' '%u'</tt></i></td></tr><tr><td><a class="indexterm" name="id2546116"></a><i class="parameter"><tt>
					
				add machine script = /var/lib/samba/sbin/</tt></i></td></tr><tr><td><i class="parameter"><tt>smbldap-useradd.pl -w '%u'</tt></i></td></tr><tr><td><a class="indexterm" name="id2546139"></a><i class="parameter"><tt>
					
				shutdown script = /var/lib/samba/scripts/shutdown.sh</tt></i></td></tr><tr><td><a class="indexterm" name="id2546156"></a><i class="parameter"><tt>
					
				abort shutdown script = /sbin/shutdown -c</tt></i></td></tr><tr><td><a class="indexterm" name="id2546172"></a><i class="parameter"><tt>
					
				logon script = scripts\logon.bat</tt></i></td></tr><tr><td><a class="indexterm" name="id2546188"></a><i class="parameter"><tt>
					
				logon path = \\%L\profiles\%U</tt></i></td></tr><tr><td><a class="indexterm" name="id2546204"></a><i class="parameter"><tt>
					
				logon drive = X:</tt></i></td></tr><tr><td><a class="indexterm" name="id2546219"></a><i class="parameter"><tt>
					
				domain logons = Yes</tt></i></td></tr><tr><td><a class="indexterm" name="id2546235"></a><i class="parameter"><tt>
					
				domain master = Yes</tt></i></td></tr><tr><td><a class="indexterm" name="id2546251"></a><i class="parameter"><tt>
					
				wins support = Yes</tt></i></td></tr><tr><td><a class="indexterm" name="id2546267"></a><i class="parameter"><tt>
					
				ldap suffix = dc=abmas,dc=biz</tt></i></td></tr><tr><td><a class="indexterm" name="id2546283"></a><i class="parameter"><tt>
					
				ldap machine suffix = ou=People</tt></i></td></tr><tr><td><a class="indexterm" name="id2546299"></a><i class="parameter"><tt>
					
				ldap user suffix = ou=People</tt></i></td></tr><tr><td><a class="indexterm" name="id2546314"></a><i class="parameter"><tt>
					
				ldap group suffix = ou=Groups</tt></i></td></tr><tr><td><a class="indexterm" name="id2546330"></a><i class="parameter"><tt>
					
				ldap idmap suffix = ou=Idmap</tt></i></td></tr><tr><td><a class="indexterm" name="id2546346"></a><i class="parameter"><tt>
					
				ldap admin dn = cn=Manager,dc=abmas,dc=biz</tt></i></td></tr><tr><td><a class="indexterm" name="id2546363"></a><i class="parameter"><tt>
					
				idmap backend = ldap://massive.abmas.biz</tt></i></td></tr><tr><td><a class="indexterm" name="id2546379"></a><i class="parameter"><tt>
					
				idmap uid = 10000-20000</tt></i></td></tr><tr><td><a class="indexterm" name="id2546394"></a><i class="parameter"><tt>
					
				idmap gid = 10000-20000</tt></i></td></tr><tr><td><a class="indexterm" name="id2546410"></a><i class="parameter"><tt>
					
				printer admin = root</tt></i></td></tr><tr><td><a class="indexterm" name="id2546426"></a><i class="parameter"><tt>
					
				printing = cups</tt></i></td></tr></table></div><div class="example"><a name="ch7-massmbconfB"></a><p class="title"><b>Example 7.4. Primary Domain Controller smb.conf File  Part B</b></p><table class="simplelist" border="0" summary="Simple list"><tr><td> </td></tr><tr><td><i class="parameter"><tt>[IPC$]</tt></i></td></tr><tr><td><a class="indexterm" name="id2546464"></a><i class="parameter"><tt>
					
				path = /tmp</tt></i></td></tr><tr><td> </td></tr><tr><td><i class="parameter"><tt>[accounts]</tt></i></td></tr><tr><td><a class="indexterm" name="id2546488"></a><i class="parameter"><tt>
					
				comment = Accounting Files</tt></i></td></tr><tr><td><a class="indexterm" name="id2546504"></a><i class="parameter"><tt>
					
				path = /data/accounts</tt></i></td></tr><tr><td><a class="indexterm" name="id2546520"></a><i class="parameter"><tt>
					
				read only = No</tt></i></td></tr><tr><td> </td></tr><tr><td><i class="parameter"><tt>[service]</tt></i></td></tr><tr><td><a class="indexterm" name="id2546544"></a><i class="parameter"><tt>
					
				comment = Financial Services Files</tt></i></td></tr><tr><td><a class="indexterm" name="id2546561"></a><i class="parameter"><tt>
					
				path = /data/service</tt></i></td></tr><tr><td><a class="indexterm" name="id2546576"></a><i class="parameter"><tt>
					
				read only = No</tt></i></td></tr><tr><td> </td></tr><tr><td><i class="parameter"><tt>[pidata]</tt></i></td></tr><tr><td><a class="indexterm" name="id2546600"></a><i class="parameter"><tt>
					
				comment = Property Insurance Files</tt></i></td></tr><tr><td><a class="indexterm" name="id2546617"></a><i class="parameter"><tt>
					
				path = /data/pidata</tt></i></td></tr><tr><td><a class="indexterm" name="id2546632"></a><i class="parameter"><tt>
					
				read only = No</tt></i></td></tr><tr><td> </td></tr><tr><td><i class="parameter"><tt>[homes]</tt></i></td></tr><tr><td><a class="indexterm" name="id2546656"></a><i class="parameter"><tt>
					
				comment = Home Directories</tt></i></td></tr><tr><td><a class="indexterm" name="id2546672"></a><i class="parameter"><tt>
					
				valid users = %S</tt></i></td></tr><tr><td><a class="indexterm" name="id2546688"></a><i class="parameter"><tt>
					
				read only = No</tt></i></td></tr><tr><td><a class="indexterm" name="id2546704"></a><i class="parameter"><tt>
					
				browseable = No</tt></i></td></tr><tr><td> </td></tr><tr><td><i class="parameter"><tt>[printers]</tt></i></td></tr><tr><td><a class="indexterm" name="id2546728"></a><i class="parameter"><tt>
					
				comment = SMB Print Spool</tt></i></td></tr><tr><td><a class="indexterm" name="id2546744"></a><i class="parameter"><tt>
					
				path = /var/spool/samba</tt></i></td></tr><tr><td><a class="indexterm" name="id2546760"></a><i class="parameter"><tt>
					
				guest ok = Yes</tt></i></td></tr><tr><td><a class="indexterm" name="id2546775"></a><i class="parameter"><tt>
					
				printable = Yes</tt></i></td></tr><tr><td><a class="indexterm" name="id2546791"></a><i class="parameter"><tt>
					
				browseable = No</tt></i></td></tr></table></div><div class="example"><a name="ch7-massmbconfC"></a><p class="title"><b>Example 7.5. Primary Domain Controller smb.conf File  Part C</b></p><table class="simplelist" border="0" summary="Simple list"><tr><td> </td></tr><tr><td><i class="parameter"><tt>[apps]</tt></i></td></tr><tr><td><a class="indexterm" name="id2546829"></a><i class="parameter"><tt>
					
				comment = Application Files</tt></i></td></tr><tr><td><a class="indexterm" name="id2546844"></a><i class="parameter"><tt>
					
				path = /apps</tt></i></td></tr><tr><td><a class="indexterm" name="id2546860"></a><i class="parameter"><tt>
					
				admin users = bjones</tt></i></td></tr><tr><td><a class="indexterm" name="id2546876"></a><i class="parameter"><tt>
					
				read only = No</tt></i></td></tr><tr><td> </td></tr><tr><td><i class="parameter"><tt>[netlogon]</tt></i></td></tr><tr><td><a class="indexterm" name="id2546900"></a><i class="parameter"><tt>
					
				comment = Network Logon Service</tt></i></td></tr><tr><td><a class="indexterm" name="id2546917"></a><i class="parameter"><tt>
					
				path = /var/lib/samba/netlogon</tt></i></td></tr><tr><td><a class="indexterm" name="id2546932"></a><i class="parameter"><tt>
					
				admin users = root, Administrator</tt></i></td></tr><tr><td><a class="indexterm" name="id2546948"></a><i class="parameter"><tt>
					
				guest ok = Yes</tt></i></td></tr><tr><td><a class="indexterm" name="id2546964"></a><i class="parameter"><tt>
					
				locking = No</tt></i></td></tr><tr><td> </td></tr><tr><td><i class="parameter"><tt>[profiles]</tt></i></td></tr><tr><td><a class="indexterm" name="id2546988"></a><i class="parameter"><tt>
					
				comment = Profile Share</tt></i></td></tr><tr><td><a class="indexterm" name="id2547003"></a><i class="parameter"><tt>
					
				path = /var/lib/samba/profiles</tt></i></td></tr><tr><td><a class="indexterm" name="id2547019"></a><i class="parameter"><tt>
					
				read only = No</tt></i></td></tr><tr><td><a class="indexterm" name="id2547035"></a><i class="parameter"><tt>
					
				profile acls = Yes</tt></i></td></tr><tr><td> </td></tr><tr><td><i class="parameter"><tt>[profdata]</tt></i></td></tr><tr><td><a class="indexterm" name="id2547059"></a><i class="parameter"><tt>
					
				comment = Profile Data Share</tt></i></td></tr><tr><td><a class="indexterm" name="id2547075"></a><i class="parameter"><tt>
					
				path = /var/lib/samba/profdata</tt></i></td></tr><tr><td><a class="indexterm" name="id2547091"></a><i class="parameter"><tt>
					
				read only = No</tt></i></td></tr><tr><td><a class="indexterm" name="id2547107"></a><i class="parameter"><tt>
					
				profile acls = Yes</tt></i></td></tr><tr><td> </td></tr><tr><td><i class="parameter"><tt>[print$]</tt></i></td></tr><tr><td><a class="indexterm" name="id2547131"></a><i class="parameter"><tt>
					
				comment = Printer Drivers</tt></i></td></tr><tr><td><a class="indexterm" name="id2547147"></a><i class="parameter"><tt>
					
				path = /var/lib/samba/drivers</tt></i></td></tr><tr><td><a class="indexterm" name="id2547163"></a><i class="parameter"><tt>
					
				write list = root</tt></i></td></tr><tr><td><a class="indexterm" name="id2547178"></a><i class="parameter"><tt>
					
				admin users = root, Administrator</tt></i></td></tr></table></div><div class="example"><a name="ch7-slvsmbocnfA"></a><p class="title"><b>Example 7.6. Backup Domain Controller smb.conf File  Part A</b></p><table class="simplelist" border="0" summary="Simple list"><tr><td># # Global parameters</td></tr><tr><td> </td></tr><tr><td><i class="parameter"><tt>[global]</tt></i></td></tr><tr><td><a class="indexterm" name="id2547223"></a><i class="parameter"><tt>
					
				unix charset = LOCALE</tt></i></td></tr><tr><td><a class="indexterm" name="id2547239"></a><i class="parameter"><tt>
					
				workgroup = MEGANET2</tt></i></td></tr><tr><td><a class="indexterm" name="id2547255"></a><i class="parameter"><tt>
					
				netbios name = BLDG1</tt></i></td></tr><tr><td><a class="indexterm" name="id2547271"></a><i class="parameter"><tt>
					
				passdb backend = ldapsam:ldap://lapdc.abmas.biz</tt></i></td></tr><tr><td><a class="indexterm" name="id2547288"></a><i class="parameter"><tt>
					
				username map = /etc/samba/smbusers</tt></i></td></tr><tr><td><a class="indexterm" name="id2547304"></a><i class="parameter"><tt>
					
				log level = 1</tt></i></td></tr><tr><td><a class="indexterm" name="id2547319"></a><i class="parameter"><tt>
					
				syslog = 0</tt></i></td></tr><tr><td><a class="indexterm" name="id2547334"></a><i class="parameter"><tt>
					
				log file = /var/log/samba/%m</tt></i></td></tr><tr><td><a class="indexterm" name="id2547350"></a><i class="parameter"><tt>
					
				max log size = 50</tt></i></td></tr><tr><td><a class="indexterm" name="id2547366"></a><i class="parameter"><tt>
					
				smb ports = 139 445</tt></i></td></tr><tr><td><a class="indexterm" name="id2547381"></a><i class="parameter"><tt>
					
				name resolve order = wins bcast hosts</tt></i></td></tr><tr><td><a class="indexterm" name="id2547398"></a><i class="parameter"><tt>
					
				printcap name = CUPS</tt></i></td></tr><tr><td><a class="indexterm" name="id2547413"></a><i class="parameter"><tt>
					
				show add printer wizard = No</tt></i></td></tr><tr><td><a class="indexterm" name="id2547429"></a><i class="parameter"><tt>
					
				logon script = scripts\logon.bat</tt></i></td></tr><tr><td><a class="indexterm" name="id2547446"></a><i class="parameter"><tt>
					
				logon path = \\%L\profiles\%U</tt></i></td></tr><tr><td><a class="indexterm" name="id2547461"></a><i class="parameter"><tt>
					
				logon drive = X:</tt></i></td></tr><tr><td><a class="indexterm" name="id2547477"></a><i class="parameter"><tt>
					
				domain logons = Yes</tt></i></td></tr><tr><td><a class="indexterm" name="id2547493"></a><i class="parameter"><tt>
					
				os level = 63</tt></i></td></tr><tr><td><a class="indexterm" name="id2547508"></a><i class="parameter"><tt>
					
				domain master = No</tt></i></td></tr><tr><td><a class="indexterm" name="id2547524"></a><i class="parameter"><tt>
					
				wins server = 192.168.2.1</tt></i></td></tr><tr><td><a class="indexterm" name="id2547540"></a><i class="parameter"><tt>
					
				ldap suffix = dc=abmas,dc=biz</tt></i></td></tr><tr><td><a class="indexterm" name="id2547555"></a><i class="parameter"><tt>
					
				ldap machine suffix = ou=People</tt></i></td></tr><tr><td><a class="indexterm" name="id2547572"></a><i class="parameter"><tt>
					
				ldap user suffix = ou=People</tt></i></td></tr><tr><td><a class="indexterm" name="id2547587"></a><i class="parameter"><tt>
					
				ldap group suffix = ou=Groups</tt></i></td></tr><tr><td><a class="indexterm" name="id2547603"></a><i class="parameter"><tt>
					
				ldap idmap suffix = ou=Idmap</tt></i></td></tr><tr><td><a class="indexterm" name="id2547619"></a><i class="parameter"><tt>
					
				ldap admin dn = cn=Manager,dc=abmas,dc=biz</tt></i></td></tr><tr><td><a class="indexterm" name="id2547636"></a><i class="parameter"><tt>
					
				utmp = Yes</tt></i></td></tr><tr><td><a class="indexterm" name="id2547651"></a><i class="parameter"><tt>
					
				idmap backend = ldap://massive.abmas.biz</tt></i></td></tr><tr><td><a class="indexterm" name="id2547668"></a><i class="parameter"><tt>
					
				idmap uid = 10000-20000</tt></i></td></tr><tr><td><a class="indexterm" name="id2547683"></a><i class="parameter"><tt>
					
				idmap gid = 10000-20000</tt></i></td></tr><tr><td><a class="indexterm" name="id2547698"></a><i class="parameter"><tt>
					
				printing = cups</tt></i></td></tr><tr><td> </td></tr><tr><td><i class="parameter"><tt>[accounts]</tt></i></td></tr><tr><td><a class="indexterm" name="id2547723"></a><i class="parameter"><tt>
					
				comment = Accounting Files</tt></i></td></tr><tr><td><a class="indexterm" name="id2547739"></a><i class="parameter"><tt>
					
				path = /data/accounts</tt></i></td></tr><tr><td><a class="indexterm" name="id2547755"></a><i class="parameter"><tt>
					
				read only = No</tt></i></td></tr><tr><td> </td></tr><tr><td><i class="parameter"><tt>[service]</tt></i></td></tr><tr><td><a class="indexterm" name="id2547779"></a><i class="parameter"><tt>
					
				comment = Financial Services Files</tt></i></td></tr><tr><td><a class="indexterm" name="id2547796"></a><i class="parameter"><tt>
					
				path = /data/service</tt></i></td></tr><tr><td><a class="indexterm" name="id2547811"></a><i class="parameter"><tt>
					
				read only = No</tt></i></td></tr></table></div><div class="example"><a name="ch7-slvsmbocnfB"></a><p class="title"><b>Example 7.7. Backup Domain Controller smb.conf File  Part B</b></p><table class="simplelist" border="0" summary="Simple list"><tr><td> </td></tr><tr><td><i class="parameter"><tt>[pidata]</tt></i></td></tr><tr><td><a class="indexterm" name="id2547849"></a><i class="parameter"><tt>
					
				comment = Property Insurance Files</tt></i></td></tr><tr><td><a class="indexterm" name="id2547865"></a><i class="parameter"><tt>
					
				path = /data/pidata</tt></i></td></tr><tr><td><a class="indexterm" name="id2547880"></a><i class="parameter"><tt>
					
				read only = No</tt></i></td></tr><tr><td> </td></tr><tr><td><i class="parameter"><tt>[homes]</tt></i></td></tr><tr><td><a class="indexterm" name="id2547905"></a><i class="parameter"><tt>
					
				comment = Home Directories</tt></i></td></tr><tr><td><a class="indexterm" name="id2547920"></a><i class="parameter"><tt>
					
				valid users = %S</tt></i></td></tr><tr><td><a class="indexterm" name="id2547936"></a><i class="parameter"><tt>
					
				read only = No</tt></i></td></tr><tr><td><a class="indexterm" name="id2547952"></a><i class="parameter"><tt>
					
				browseable = No</tt></i></td></tr><tr><td> </td></tr><tr><td><i class="parameter"><tt>[printers]</tt></i></td></tr><tr><td><a class="indexterm" name="id2547976"></a><i class="parameter"><tt>
					
				comment = SMB Print Spool</tt></i></td></tr><tr><td><a class="indexterm" name="id2547992"></a><i class="parameter"><tt>
					
				path = /var/spool/samba</tt></i></td></tr><tr><td><a class="indexterm" name="id2548008"></a><i class="parameter"><tt>
					
				guest ok = Yes</tt></i></td></tr><tr><td><a class="indexterm" name="id2548023"></a><i class="parameter"><tt>
					
				printable = Yes</tt></i></td></tr><tr><td><a class="indexterm" name="id2548039"></a><i class="parameter"><tt>
					
				browseable = No</tt></i></td></tr><tr><td> </td></tr><tr><td><i class="parameter"><tt>[apps]</tt></i></td></tr><tr><td><a class="indexterm" name="id2548064"></a><i class="parameter"><tt>
					
				comment = Application Files</tt></i></td></tr><tr><td><a class="indexterm" name="id2548079"></a><i class="parameter"><tt>
					
				path = /apps</tt></i></td></tr><tr><td><a class="indexterm" name="id2548095"></a><i class="parameter"><tt>
					
				admin users = bjones</tt></i></td></tr><tr><td><a class="indexterm" name="id2548110"></a><i class="parameter"><tt>
					
				read only = No</tt></i></td></tr><tr><td> </td></tr><tr><td><i class="parameter"><tt>[netlogon]</tt></i></td></tr><tr><td><a class="indexterm" name="id2548135"></a><i class="parameter"><tt>
					
				comment = Network Logon Service</tt></i></td></tr><tr><td><a class="indexterm" name="id2548151"></a><i class="parameter"><tt>
					
				path = /var/lib/samba/netlogon</tt></i></td></tr><tr><td><a class="indexterm" name="id2548167"></a><i class="parameter"><tt>
					
				guest ok = Yes</tt></i></td></tr><tr><td><a class="indexterm" name="id2548182"></a><i class="parameter"><tt>
					
				locking = No</tt></i></td></tr><tr><td> </td></tr><tr><td><i class="parameter"><tt>[profiles]</tt></i></td></tr><tr><td><a class="indexterm" name="id2548206"></a><i class="parameter"><tt>
					
				comment = Profile Share</tt></i></td></tr><tr><td><a class="indexterm" name="id2548222"></a><i class="parameter"><tt>
					
				path = /var/lib/samba/profiles</tt></i></td></tr><tr><td><a class="indexterm" name="id2548238"></a><i class="parameter"><tt>
					
				read only = No</tt></i></td></tr><tr><td><a class="indexterm" name="id2548254"></a><i class="parameter"><tt>
					
				profile acls = Yes</tt></i></td></tr><tr><td> </td></tr><tr><td><i class="parameter"><tt>[profdata]</tt></i></td></tr><tr><td><a class="indexterm" name="id2548278"></a><i class="parameter"><tt>
					
				comment = Profile Data Share</tt></i></td></tr><tr><td><a class="indexterm" name="id2548294"></a><i class="parameter"><tt>
					
				path = /var/lib/samba/profdata</tt></i></td></tr><tr><td><a class="indexterm" name="id2548310"></a><i class="parameter"><tt>
					
				read only = No</tt></i></td></tr><tr><td><a class="indexterm" name="id2548325"></a><i class="parameter"><tt>
					
				profile acls = Yes</tt></i></td></tr></table></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2548341"></a>Key Points Learned</h3></div></div><div></div></div><p>
		</p><div class="itemizedlist"><ul type="disc"><li><p><a class="indexterm" name="id2548354"></a><a class="indexterm" name="id2548362"></a>
			Where Samba-3 is used as a Domain Controller, the use of LDAP is an 
			essential component necessary to permit the use of BDCs.
			</p></li><li><p><a class="indexterm" name="id2548376"></a>
			Replication of the LDAP master server to create a network of BDCs
			is an important mechanism for limiting wide-area network traffic.
			</p></li><li><p>
			Network administration presents many complex challenges, most of which
			can be satisfied by good design, but that also require sound communication
			and unification of management practices. This can be highly challenging in
			a large, globally distributed network.
			</p></li><li><p>
			Roaming profiles must be contained to the local network segment. Any
			departure from this may clog wide-area arteries and slow legitimate network
			traffic to a crawl.
			</p></li></ul></div></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2548408"></a>Questions and Answers</h2></div></div><div></div></div><p>
	There is much rumor and misinformation regarding the use of MS Windows networking protocols.
	These questions are just a few of those frequently asked.
	</p><div class="qandaset"><dl><dt> <a href="2000users.html#id2548425">DHCPnetworkbandwidth
		Is it true that DHCP uses lots of wide-area network bandwidth?
		</a></dt><dt> <a href="2000users.html#id2548576">background communicationLDAPmaster/slavebackground communication
		How much background communication takes place between a Master LDAP 
		server and its slave LDAP servers?
		</a></dt><dt> <a href="2000users.html#id2548642">
		LDAP has a database. Is LDAP not just a fancy database front end?
		</a></dt><dt> <a href="2000users.html#id2548711">OpenLDAP
		Can Active Directory obtain account information from an OpenLDAP server?
		</a></dt><dt> <a href="2000users.html#id2548749">
		What are the parts of a roaming profile? How large is each part?
		</a></dt><dt> <a href="2000users.html#id2548874">
		Can the My Documents folder be stored on a network drive?
		</a></dt><dt> <a href="2000users.html#id2548925">wide-areanetworkbandwidthWINS
		How much wide-area network bandwidth does WINS consume?
		</a></dt><dt> <a href="2000users.html#id2549031">
		How many BDCs should I have? What is the right number of Windows clients per server?
		</a></dt><dt> <a href="2000users.html#id2549067">NIS serverLDAP
		I've heard that you can store NIS accounts in LDAP. Is LDAP not just a smarter way to
		run an NIS server?
		</a></dt><dt> <a href="2000users.html#id2549104">
		Can I use NIS in place of LDAP?
		</a></dt></dl><table border="0" summary="Q and A Set"><col align="left" width="1%"><tbody><tr class="question"><td align="left" valign="top"><a name="id2548425"></a><a name="id2548427"></a><b></b></td><td align="left" valign="top"><p><a class="indexterm" name="id2548430"></a><a class="indexterm" name="id2548438"></a>
		Is it true that DHCP uses lots of wide-area network bandwidth?
		</p></td></tr><tr class="answer"><td align="left" valign="top"><b></b></td><td align="left" valign="top"><p><a class="indexterm" name="id2548457"></a><a class="indexterm" name="id2548468"></a><a class="indexterm" name="id2548476"></a>
		It is a smart practice to localize DHCP servers on each network segment. As a 
		rule, there should be two DHCP servers per network segment. This means that if
		one server fails, there is always another to service user needs. DHCP requests use
		only UDP broadcast protocols. It is possible to run a DHCP Relay Agent on network
		routers. This makes it possible to run fewer DHCP servers.
		</p><p><a class="indexterm" name="id2548497"></a><a class="indexterm" name="id2548509"></a>
		A DHCP network address request and confirmation usually results in about six UDP packets.
		The packets are from 60 to 568 bytes in length. Let us consider a site that has 300 DHCP
		clients and that uses a 24-hour IP address lease. This means that all clients renew
		their IP address lease every 24 hours. If we assume an average packet length equal to the
		maximum (just to be on the safe side), and we have a 128 Kbit/sec wide-area connection, 
		how significant would the DHCP traffic be if all of it were to use DHCP Relay?
		</p><p>
		I must stress that this is a bad design, but here is the calculation:
</p><pre class="screen">
Daily Network Capacity: 128,000 (Kbits/s) / 8 (bits/byte) 
                             x 3600 (sec/hr) x 24 (hrs/day)= 2288 Mbytes/day.

DHCP traffic:          300 (clients) x 6 (packets) 
                                       x 512 (bytes/packet) = 0.9 Mbytes/day.
</pre><p>
		From this can be seen that the traffic impact would be minimal.
		</p><p><a class="indexterm" name="id2548548"></a><a class="indexterm" name="id2548559"></a>
		Even when DHCP is configured to do DNS update (Dynamic DNS) over a wide-area link,
		the impact of the update is no more than the DHCP IP address renewal traffic and, thus,
		still insignificant for most practical purposes.
		</p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2548576"></a><a name="id2548578"></a><b></b></td><td align="left" valign="top"><p><a class="indexterm" name="id2548581"></a><a class="indexterm" name="id2548589"></a>
		How much background communication takes place between a Master LDAP 
		server and its slave LDAP servers?
		</p></td></tr><tr class="answer"><td align="left" valign="top"><b></b></td><td align="left" valign="top"><p><a class="indexterm" name="id2548613"></a>
		The process that controls the replication of data from the Master LDAP server to the Slave LDAP
		servers is called <span><b class="command">slurpd</b></span>. The <span><b class="command">slurpd</b></span> remains nascent (quiet)
		until an update must be propagated. The propagation traffic per LDAP salve to update (add/modify/delete)
		two user accounts requires less than 10Kbytes traffic.
		</p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2548642"></a><a name="id2548644"></a><b></b></td><td align="left" valign="top"><p>
		LDAP has a database. Is LDAP not just a fancy database front end?
		</p></td></tr><tr class="answer"><td align="left" valign="top"><b></b></td><td align="left" valign="top"><p><a class="indexterm" name="id2548655"></a><a class="indexterm" name="id2548663"></a><a class="indexterm" name="id2548674"></a><a class="indexterm" name="id2548682"></a>
		LDAP does store its data in a database of sorts. In fact the LDAP backend is an application-specific
		data storage system. This type of database is indexed so that records can be rapidly located, but the
		database is not generic and can be used only in particular pre-programmed ways. General external
		applications do not gain access to the data. This type of database is used also by SQL servers. Both
		an SQL server and an LDAP server provide ways to access the data. An SQL server has a transactional
		orientation and typically allows external programs to perform ad-hoc queries, even across data tables.
		An LDAP front end is a purpose-built tool that has a search orientation that is designed around specific
		simple queries. The term <tt class="constant">database</tt> is heavily overloaded and, thus, much misunderstood.
		</p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2548711"></a><a name="id2548713"></a><b></b></td><td align="left" valign="top"><p><a class="indexterm" name="id2548717"></a>
		Can Active Directory obtain account information from an OpenLDAP server?
		</p></td></tr><tr class="answer"><td align="left" valign="top"><b></b></td><td align="left" valign="top"><p><a class="indexterm" name="id2548732"></a>
		No, at least not directly. It is possible to provision Active Directory from/to an OpenLDAP
		database through use of a meta-directory server. Microsoft MMS (now called MIIS) can interface
		to OpenLDAP using standard LDAP queries/updates. 
		</p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2548749"></a><a name="id2548751"></a><b></b></td><td align="left" valign="top"><p>
		What are the parts of a roaming profile? How large is each part?
		</p></td></tr><tr class="answer"><td align="left" valign="top"><b></b></td><td align="left" valign="top"><p><a class="indexterm" name="id2548762"></a>
		A roaming profile consists of:
		</p><div class="itemizedlist"><ul type="disc"><li><p>
			Desktop folders such as: <tt class="constant">Desktop, My Documents, My Pictures, My Music, Internet Files,
			Cookies, Application Data, Local Settings,</tt> and more. See <a href="happy.html#XP-screen001" title="Figure 6.3. Windows XP Professional  User Shared Folders">???</a>.
			</p><p><a class="indexterm" name="id2548793"></a>
			Each of these can be anywhere from a few bytes to gigabytes in capacity. Fortunately, all
			such folders can be redirected to network drive resources. See <a href="happy.html#redirfold" title="Configuration of Default Profile with Folder Redirection">???</a>
			for more information regarding folder redirection.
			</p></li><li><p>
			A static or re-writable portion that is typically only a few files (2-5 Kbytes of information).
			</p></li><li><p><a class="indexterm" name="id2548820"></a><a class="indexterm" name="id2548828"></a>
			The registry load file that modifies the <tt class="constant">HKEY_LOCAL_USER</tt> hive. This is
			the <tt class="filename">NTUSER.DAT</tt> file. It can be from 0.4-1.5 MBytes.
			</p></li></ul></div><p><a class="indexterm" name="id2548852"></a>
		Microsoft Outlook PST files may be stored in the <tt class="constant">Local Settings\Application Data</tt>
		folder. It can be up to 2 Gbytes in size per PST file.
		</p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2548874"></a><a name="id2548876"></a><b></b></td><td align="left" valign="top"><p>
		Can the <tt class="constant">My Documents</tt> folder be stored on a network drive?
		</p></td></tr><tr class="answer"><td align="left" valign="top"><b></b></td><td align="left" valign="top"><p><a class="indexterm" name="id2548890"></a><a class="indexterm" name="id2548898"></a>
		Yes. More correctly, such folders can be redirected to network shares. No specific network drive
		connection is required. Registry settings permit this to be redirected directly to a UNC (Universal
		Naming Convention) resource, though it is possible to specify a network drive letter instead of a
		UNC name. See <a href="happy.html#redirfold" title="Configuration of Default Profile with Folder Redirection">???</a>.
		</p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2548925"></a><a name="id2548927"></a><b></b></td><td align="left" valign="top"><p><a class="indexterm" name="id2548930"></a><a class="indexterm" name="id2548938"></a><a class="indexterm" name="id2548949"></a>
		How much wide-area network bandwidth does WINS consume?
		</p></td></tr><tr class="answer"><td align="left" valign="top"><b></b></td><td align="left" valign="top"><p><a class="indexterm" name="id2548965"></a><a class="indexterm" name="id2548976"></a><a class="indexterm" name="id2548984"></a>
		MS Windows clients cache information obtained from WINS lookups in a local NetBIOS name cache.
		This keeps WINS lookups to a minimum. On a network with 3500 MS Windows clients and a central WINS
		server, the total bandwidth demand measured at the WINS server, averaged over an eight-hour working day,
		was less than 30 Kbytes/sec. Analysis of network traffic over a six-week period showed that the total
		of all background traffic consumed about 11 percent of available bandwidth over 64 Kbit/sec links.
		Back-ground traffic consisted of domain replication, WINS queries, DNS lookups, authentication
		traffic. Each of 11 branch offices had a 64 Kbit/sec wide-area link, with a 1.5 Mbit/sec main connection
		that aggregated the branch office connections plus an Internet connection.
		</p><p>
		In conclusion, the total load afforded through WINS traffic is again marginal to total operational
		usage  as it should be.
		</p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2549031"></a><a name="id2549034"></a><b></b></td><td align="left" valign="top"><p>
		How many BDCs should I have? What is the right number of Windows clients per server?
		</p></td></tr><tr class="answer"><td align="left" valign="top"><b></b></td><td align="left" valign="top"><p>
		It is recommended to have at least one BDC per network segment, including the segment served
		by the PDC. Actual requirements vary depending on the working load on each of the BDCs and the
		load demand pattern of client usage. I have seen sites that function without problem with 200
		clients served by one BDC, and yet other sites that had one BDC per 20 clients. In one particular
		company, there was a drafting office that has 30 CAD/CAM operators served by one server, a print
		server; and an application server. While all three were BDCs, typically only the print server would
		service network logon requests after the first 10 users had started to use the network. This was
		a reflection of the service load placed on both the application server and the data server.
		</p><p>
		As unsatisfactory as the answer might sound, it all depends on network and server load
		characteristics.
		</p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2549067"></a><a name="id2549070"></a><b></b></td><td align="left" valign="top"><p><a class="indexterm" name="id2549073"></a><a class="indexterm" name="id2549081"></a>
		I've heard that you can store NIS accounts in LDAP. Is LDAP not just a smarter way to
		run an NIS server?
		</p></td></tr><tr class="answer"><td align="left" valign="top"><b></b></td><td align="left" valign="top"><p>
		The correct answer to both questions is yes. But do understand that an LDAP server has
		a configurable schema that can store far more information for many more purposes than
		just NIS.
		</p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2549104"></a><a name="id2549107"></a><b></b></td><td align="left" valign="top"><p>
		Can I use NIS in place of LDAP?
		</p></td></tr><tr class="answer"><td align="left" valign="top"><b></b></td><td align="left" valign="top"><p><a class="indexterm" name="id2549117"></a><a class="indexterm" name="id2549125"></a>
		No. The NIS database does not have provision to store Microsoft encrypted passwords and does not deal
		with the types of data necessary for interoperability with Microsoft Windows networking. The use
		of LDAP with Samba requires the use of a number of schemas, one of which is the NIS schema, but also
		a Samba-specific schema extension.
		</p></td></tr></tbody></table></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="happy.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="index.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="migration.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Chapter 6. Making Users Happy </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Chapter 8. Migrating NT4 Domain to Samba-3</td></tr></table></div></body></html>