|Previous Contents Index DocHome Next|
|iPlanet Directory Server 5.1 Deployment Guide|
Chapter 8 Directory Design Examples
How you design your directory depends upon the size and nature of your enterprise. This chapter provides examples of how a directory can be applied within a variety of different settings. You can use these examples as a starting point for developing your own directory deployment plan.
This chapter contains the following example directory designs:
siroe.com Corporation, an automobile parts manufacturer, is a small company that consists of 500 employees. siroe.com decides to deploy Directory Server to support the directory-enabled applications it uses. siroe.com's directory design process involves the following steps:
siroe.com first decides upon the type of data it will store in the directory. To do this, siroe.com creates a deployment team that performs a site survey to determine how the directory will be used. The deployment team determines the following:
siroe.com's directory maintains user and group information to support an iPlanet server-based intranet deployed throughout the organization. Most of siroe.com's user and group information will be centrally managed by a group of directory administrators. However, siroe.com also wants email information to be managed by a separate group of mail administrators.
iPlanet Messaging Server does exact searches on attributes such as the uid, mailServerName, and mailAddress attributes. To improve database performance, siroe.com will maintain indexes for these attributes to support searches by iPlanet Messaging Server.
For more information on using indexes, refer to "Using Indexes to Improve Database Performance".
The white pages application will frequently search for user names and phone numbers. The directory will therefore need to be able to handle lots of substring, wildcard, and sounds-like searches which return large sets of results. siroe.com decides to maintain approximate and substring indexes for the dn, sn, and givenName attributes
siroe.com's deployment team decides to use the inetOrgPerson object class to represent the entries in the directory. This object class is appealing because it allows the userCertificate and uid(userID) attributes, both of which are needed by the applications supported by siroe.com's directory.
siroe.com also wants to customize the default directory schema. siroe.com creates the siroePerson object class to represent employees of siroe.com Corporation. It derives this object class from the inetOrgPerson object class.
The siroePerson object class allows one attribute, the siroeID attribute. This attribute contains the special employee number assigned to each siroe.com employee.
In the future, siroe.com can add new attributes to the siroePerson object class as needed.
Directory Tree Design
siroe.com creates a directory tree as follows:
The root of the directory tree is siroe.com's internet domain name: dc=siroe,dc=com.
The people entries are all members of the person, organizationalPerson, inetOrgPerson, and siroePerson object classes. The uid attribute uniquely identifies each entry's DN. For example, siroe.com contains entries for Babs Jensen (uid=bjensen) and Emily Stanton (uid=estanton).
siroe.com creates three roles, one for each department in siroe.com: sales, marketing, and accounting.
Each person entry contains a role attribute which identifies the department to which the person belongs. siroe.com can now create ACIs based upon these roles. For more information about roles, refer to "Managed, Filtered, and Nested Roles".
Two group branches are created under the ou=groups branch.
The first group, cn=administrators, contains entries for the directory administrators that manage the directory contents.
Mail administrators use the second group, cn=messaging admin, to manage mail accounts. This group corresponds to the administrators group used by iPlanet Messaging Server. siroe.com makes sure that the group it configures for Messaging Server is different from the group it creates for Directory Server.
Two branches are created under the ou=resources branch, one for conference rooms (ou=conference rooms) and one for offices (ou=offices).
siroe.com creates a class of service (CoS) that provides values for the mailquota attribute depending upon whether or not an entry belongs to the administrative group.
This CoS gives administrators a mail quota of 500 MB while ordinary siroe.com employees have a mail quota of 100 MB. For more information about CoS, refer to "Class of Service".
The following diagram illustrates the directory tree resulting from the design steps listed above:
Figure 8-1    Directory Tree for siroe.com Corporation
Next, siroe.com designs both its database and server topologies. The following sections describe each topology in detail.
siroe.com designs a database topology in which the people branch is stored in one database (DB1), the groups branch is stored in another database (DB2), and the resources branch, roles branch, and the root suffix information are stored in a third database (DB3). The database topology for siroe.com's directory looks as follows:
Figure 8-2    Database Topology for siroe.com Corporation
Each of the two supplier servers updates all three consumer servers in siroe.com's deployment of directory server. These consumers supply data to one iPlanet Messaging Server and to the other Unified User Management products using iPlanet Data Access Router (iDAR).
For more information about the iPlanet Unified User Management products, refer to http://www.iplanet.com/products/.
The siroe.com server topology follows:
Figure 8-3    Server Topology for siroe.com Corporation
Modify requests from the iPlanet servers (such as the Calendar Server or the Delegated Admin Server) are routed by iDAR to the appropriate consumer server. The consumer server uses smart referrals to route the request to the supplier server responsible for the master copy of the piece of data being modified.
siroe.com decides to use a multi-master replication design to ensure the high availability of its directory data. For more information about multi-master replication, refer to "Multi-Master Replication".
The following sections provide more details about the supplier server architecture and the supplier-consumer server topology.
siroe.com uses two supplier servers in a multi-master replication architecture. The suppliers update one another so that the directory data remains consistent. The supplier architecture works as follows:
Figure 8-4    Supplier Architecture for siroe.com Corporation
Supplier Consumer Architecture
The following diagram describes how the supplier servers replicate to each consumer in the siroe.com deployment of the directory:
Figure 8-5    Supplier/Consumer Architecture for siroe.com Corporation
Each of the three consumer servers is updated by the two supplier servers as shown in Figure 8-5. This ensures that the consumers will not be affected if there is a failure in one of the supplier servers.
siroe.com decides on the following security design to protect its directory data:
siroe.com creates an ACI that allows employees to modify their own entries.
To protect the privacy of employee data, siroe.com develops an ACI that allows only the employee and an employee's manager to see the employee's home address and phone number.
The directory administrators group needs full access to the directory. The messaging administrators group needs write and delete access to the mailRecipient and mailGroup object classes, the attributes contained on those object classes, as well as the mail attribute. siroe.com also grants the messaging administrators group write, delete, and add permissions to the group subdirectory for creation of mail groups.
A general access control is created at the root of the directory tree that allows anonymous access for read, search, and compare access.
To protect the server from denial of service attacks and inappropriate use, siroe.com sets resource limits based on the DN used by directory clients to bind.
siroe.com allows anonymous users to receive 100 entries at a time in response to search requests, administrator users to receive 1,000 entries, and system administrators to receive an unlimited number of entries. For more information about setting resource limits based on the bind DN, refer to "User Account Management" in the iPlanet Directory Server Administrator's Guide.
siroe.com creates a password policy where passwords must be at least 8 characters in length and expire after 90 days.
For more information about password policies, refer to "Designing a Password Policy".
siroe.com creates an ACI that gives members of the accounting role access to all payroll information.
Tuning and Optimizations
siroe.com optimizes its deployment of directory by doing the following:
Running the /usr/sbin/directoryserver idsktune utility
This utility provides an easy and reliable way of checking the patch levels and the kernel and network settings for your system.
Optimizing the entry and database caches
siroe.com makes the following decisions regarding the day-to-day operation of its directory:
Back up the databases every night and write the backups to tape once a week.
Use SNMP to monitor the server status.
For more information about SNMP, refer to the iPlanet Directory Server Administrator's Guide.
Auto-rotate the access logs. For more information about the access, error, and audit logs, refer to "Monitoring Server and Database Activity" in the iPlanet Directory Server Administrator's Guide.
A Multinational Enterprise and its Extranet
This example builds a directory infrastructure for siroe.com International. siroe.com Corporation from the previous example has grown into a large, multinational company. This example builds on the directory structure created in the last example for siroe.com Corporation, expanding the directory design to meet its new needs.
siroe.com has grown into an organization dispersed over three main geographic locations: the US, Europe, and Asia. siroe.com now has more than 20,000 employees, all of which live and work in the countries where the siroe.com offices are located. siroe.com decides to launch a company-wide LDAP directory to improve internal communication, to make it easier to develop and deploy web applications, and to increase security and privacy.
Designing a directory tree for an international corporation involves determining how to logically collect directory entries, how to support data management, and how to support replication on a global scale.
In addition, siroe.com wants to create an extranet for use by its parts suppliers and trading partners. An extranet is an extension of an enterprise's intranet to external clients.
The following sections describe the steps in the process of deploying a multinational directory service and extranet for siroe.com International:
siroe.com International creates a deployment team to perform a site survey. The deployment team determines the following from the site survey:
iPlanet Messaging Server is used to provide electronic mail routing, delivery, and reading services for most of siroe.com's sites. Enterprise server is used to provide document publishing services. All servers run on the Solaris UNIX operating system.
siroe.com needs to allow data to be managed locally. For example, the European site will be responsible for managing the Europe branch of the directory. This also means that Europe will be responsible for the master copy of its data. The deployment team also determines the following about the data design of the extranet:
Suppliers will need to log in to siroe.com's directory to manage their contracts with siroe.com. Suppliers will depend upon data elements used for authentication, such as name and user password.
siroe.com builds upon its original schema design by adding schema elements to support the extranet. siroe.com adds two new objects, the siroeSupplier object class and the siroePartner object class.
The siroeSupplier object class allows one attribute, the siroeSupplierID attribute. This attribute contains the unique ID assigned by siroe.com International to each auto part supplier it works with.
The siroePartner object class allows one attribute, the siroePartnerID attribute. This attribute contains the unique ID assigned by siroe.com International to each trade partner.
For information about customizing the default directory schema, refer to "Customizing the Schema".
Directory Tree Design
siroe.com creates a directory tree as follows:
The directory tree is rooted in the suffix dc=com. Under this suffix, siroe.com creates two branches. One branch, dc=siroeCorp,dc=com, contains data internal to siroe.com International. The other branch, dc=siroeNet,dc=com, contains data for the extranet.
The directory tree for the intranet (under dc=siroeCorp,dc=com) has three main branches, each corresponding to one of the regions where siroe.com has offices. These branches are identified using the l(locality) attribute.
Each main branch under dc=siroeCorp,dc=com mimics the original directory tree design of siroe.com Corporation. Under each locality, siroe.com creates an ou=people, an ou=groups, an ou=roles, and an ou=resources branch. See "Directory Tree for siroe.com Corporation" for more information about this directory tree design. The basic directory tree that results appears as follows:
Figure 8-6    Basic Directory Tree for siroe.com International
The directory tree for the siroe.com intranet appears as follows:
Figure 8-7    Directory Tree for siroe.com International's Intranet
The entry for the l=Asia entry appears in LDIF as follows:
description: includes all sites in Asia
The directory tree for siroe.com's extranet appears as follows:
Figure 8-8    Directory Tree for siroe.com International's Extranet
Next, siroe.com designs both its database and server topologies. The following sections describe each topology in more detail.
The following diagram illustrates the database topology of one of siroe.com's main localities, Europe:
Figure 8-9    Database Topology for siroe.com Europe
The database links point to databases stored locally in each country. For example, operation requests received by the siroe.com Europe server for the data under the l=US branch are chained by a database link to a database on a server in Austin, Texas. For more information about database links and chaining, refer to "Using Chaining".
The master copy of the data for dc=siroeCorp,dc=com and the root entry, dc=com, is kept in the Europe, as shown by the box in Figure 8-9.
The data center in Europe contains the master copies of the data for the extranet. The extranet data is stored in three databases, one for each of the main branches. The following figures shows the database topology for the extranet:
Figure 8-10    Database Topology for siroe.com International's Extranet
As illustrated in Figure 8-10, the master copy of the data for o=suppliers is stored in database one, the master copy of the data for o=partners is stored in database two, and the master copy of the data for ou=groups is stored in database three.
siroe.com develops two server topologies, one for the corporate intranet and one for the partner extranet.
For the intranet, siroe.com decides to have a master database for each major locality. This means it has three data centers, each containing two supplier servers, two hub servers, and three consumer servers.
The architecture of siroe.com Europe's data center appears as follows:
Figure 8-11    Server Topology for siroe.com Europe
siroe.com's extranet data is mastered in Europe. This data is replicated to two consumer servers in the US data center and two consumer servers in the Asia data center. In all, siroe.com requires ten servers to support the extranet.
The server architecture of siroe.com's extranet appears as follows in the siroe.com Europe data center:
Figure 8-12    Server Topology for siroe.com International's Extranet
The hub servers replicate the data to two consumer servers in the siroe.com Europe data center, two consumer servers in the siroe.com US data center, and two consumer servers in the siroe.com Asia data center.
siroe.com considers the following when designing replication for its directory:
Data will be managed locally. The hub servers are located near important directory-enabled applications such as a mail server or a web server.
Hub servers remove the burden of replication from the supplier servers, so the suppliers can concentrate on doing write operations. In the future, as siroe.com expands and needs to add more consumer servers, the additional consumers do not affect the performance of the suppliers.
For more information about hub servers, refer to "Cascading Replication".
For the siroe.com intranet, each locality keeps the master copy of its data and uses database links to chain to the data of other localities. For the master copy of its data, each locality uses a multi-master replication architecture. For example, the supplier architecture for Europe, which includes the dc=siroeCorp,dc=com and dc=com information, appears as follows:
Figure 8-13    Supplier Architecture for siroe.com Europe
Each locality contains two suppliers, which share master copies of the data for that site. Each locality is therefore responsible for the master copy of its own data. Using a multi-master architecture ensures the availability of the data and helps balance the load of work managed by each supplier server.
To reduce the risk of total failure, siroe.com Corporation uses multiple master directory servers at each site.
The following diagram illustrates the interaction between the two supplier servers in Europe and the two supplier servers in the US:
Figure 8-14    Supplier/Supplier Architecture for siroe.com Europe and siroe.com US
The same relationship as that illustrated in Figure 8-14 exists between siroe.com US and siroe.com Asia, and between siroe.com Europe and siroe.com Asia.
siroe.com International builds upon its previous security design, adding the following access controls to support its new multinational intranet:
siroe.com adds general ACIs to the root of the intranet, creating more restrictive ACIs in each country and the branches beneath each country.
siroe.com uses a macro to represent a DN in the target or bind rule portion of the ACI. When the directory gets an incoming LDAP operation, the ACI macros are matched against the resource targeted by the LDAP operation. If there is a match, the macro is replaced by the value of the DN of the targeted resource.
For more information about macro ACIs, refer to the iPlanet Directory Server Administrator's Guide.
siroe.com adds the following access controls to support its extranet:
siroe.com decides to use certificate-based authentication for all extranet activities. When people log in to the extranet, they need a digital certificate. The directory is used to store the certificates. Because the directory stores the certificates, users can send encrypted email by looking up public keys stored in the directory.
siroe.com wants updates to the directory data to come only from a siroe.com hosted application. This means that partners and suppliers using the extranet can only use the tools provided by siroe.com. Restricting extranet users to siroe.com's preferred tools allows siroe.com administrators to use the audit logs to track the use of the directory, and limits the types of problems that can be introduced by extranet users outside of siroe.com International.
siroe.com will use iDAR to add additional security. For more information about iDAR, go to http://www.iplanet.com/.
Previous Contents Index DocHome Next
Copyright © 2002 Sun Microsystems, Inc. Some preexisting portions Copyright © 2001 Netscape Communications Corp. All rights reserved.
Last Updated February 26, 2002