|
Network Information Services Plus |
Sunsoft's naming service helps deal with managing large networks of NIS-compliant systemsBy Arshad Noor To cope with the phenomenal growth of networks and the need to provide services that are easily managed by system administrators, Sunsoft Inc. has introduced the Network Information Services Plus (NIS+) with Solaris 2.x. NIS+ is a naming service that provides programs with information such as home directory, network information, remote procedure call (RPC) program name and number, socket number and protocol type. A standalone machine looks up this information in the
NIS+ inherits characteristics of Domain Name Service (DNS) and
Network Information Services (NIS), formerly known as Yellow
Pages. Like NIS, NIS+ provides name services for all kinds of
information-- At the time of writing [Spring 1994], only machines running Solaris 2.x may be NIS+ servers because only Solaris includes NIS+. The Common Open Software Environment (COSE) group--Sun Microsystems Inc., IBM Corp., Hewlett-Packard Co., Novell Inc., and The Santa Cruz Operation Inc.--have endorsed ONC+ (Open Network Computing Plus), which includes NIS+, but have not committed to release dates. Workstations and servers running SunOS 4.x may be NIS+ clients because the distribution includes SunOS 4.x NIS+ binaries. Machines running Unix from vendors such as IBM and HP, which support NIS, may be NIS+ clients too if the NIS+ server is running in Yellow-Pages-compatibility mode. A major change between NIS and NIS+ is the extensive security built around NIS+. By default, it uses Secure RPC, with data encryption standards (DES) encryption and Diffie-Hellmann key exchange for authentication. And it does extensive authorization checks before allowing any NIS+ operation. This procedure ensures that when NIS+ is set up and used as recommended, it is a secure environment. In this tutorial, you will set up NIS+ for the Zoo Corp. The domain structure has a root domain called zoo.com and two subdomains, mammals.zoo.com and birds.zoo.com. All clients will be assigned to either the mammals or birds subdomain. In Solaris 2.3, three shell scripts simplify setting up NIS+:
NIS+ PlanningFirst identify the root domain for the name space. An organization must have one domain that is the parent for the entire NIS+ hierarchy. This domain, known as the root domain, must have a name that consists of two parts separated by a period, such as xyz.com or pqr.edu. The naming convention follows DNS standards, using such extensions as ``.com'' for commercial or ``.edu'' for educational organizations. In our example, the name of the root domain will be zoo.com. A domain is analogous to a directory in a Unix file system. In fact, NIS+ describes domains as directory objects, and many of the NIS+ commands are similar to Unix commands. Once the root domain has been named--in our example, zoo.com--recursively identify the subdomains within the parent. Each subdomain name must be unique within its parent. Most NIS+ environments will have at least one subdomain, otherwise they may as well just use NIS if security were not an issue. Having only one domain in NIS+ is, conceptually, the same as having a flat NIS domain. Most organizations will use the root domain as a place holder for subdomains, and with few exceptions, clients (machines and human users) will be assigned to subdomains rather than the root domain. It is more logical to assign staff to sales.widgets.com or finance.widgets.com rather than to widgets.com. In our example, the subdomains are mammals.zoo.com and birds.zoo.com. Each domain and all its objects are ``owned'' by the individual that first created it, just as Unix files are owned by their creators. This arrangement can be inconvenient over time because only the owner has administrative privileges for the domain. One solution is to create an NIS+ group that has administrative privileges on the domain and then add or remove individuals to or from this group. The concept is similar to Unix groups. The use of the name ``admin'' for administrative groups is recommended, so we'll use admin.zoo.com, admin.mammals.zoo.com, and admin.birds.zoo.com. Decide on the machines that will serve as masters and replicas for each domain. Each NIS+ domain must have only one master server and, optionally, one or more replica servers that back it up. Have at least one replica server per domain. A server may serve more than one domain, but if you can, use separate machines to serve as masters for distinct domains. A replica either must be in the same domain as the master or in a parent domain. In our example, we will use the machines shown in Table 1. With the exception of the machines that will become servers for subdomains and replicas, the next step--identifying the clients of each domain--may be deferred until the domain hierarchy is set up. Remember that NIS+ servers of a subdomain are clients of its parent domain (with the exception of the root master, which is a client of its own domain). NIS+ clients can be machines or human users. All names must be unique within a domain and must conform to the Unix naming standards. Clients to be set up are also shown in Table 1. NIS+ SecurityBased on the type of client machines that will be installed,
decide on the security policy to be used for each domain. NIS+
allows for three modes of security when running the daemon
( An NIS+ object, such as a table or a column within a table,
has four groups of privileges, each group consisting of four
privileges. The four groups are User, Group, World, and Nobody.
The four privileges are Read, Modify, Create, and Delete. The
privileges work in exactly the same way as Unix file system
privileges. The privileges on an object are depicted as
If you have a mixed Unix environment--HP, IBM, Digital
Equipment Corp., and others--that supports NIS, then you must
create the NIS+ objects and run Setting up NIS+ in NIS-compatibility mode also forces the
display of encrypted passwords from the passwd table so that NIS
clients may validate their log-ins. This act reverses the secure
policy that the shadow password file ( NIS+ Root Server ImplementationOnce you've taken care of the planning tasks, you can continue with the implementation: Begin by establishing the domain name of the root server by
creating the file Add the Set up the NIS+ objects using the
Populating NIS+ TablesThe Next add credentials for administrators who will have
privileges on the NIS+ name space. See Listing 3A on how to add local and DES
credentials for users. Bear in mind that adding credentials does
not automatically create entries in the Creating NIS+ credentials for client machines is accomplished in the same way as setting up DES credentials for a user (machines do not have local credentials in NIS+), as shown in Listing 3C. Every time a client machine boots up, it authenticates itself to the NIS+ servers using these credentials. Setting Up NIS+ Client MachinesYou have now finished adding information to the NIS+ tables.
Next you set up clients in the root domain that will become
servers for the subdomains. The tasks are similar to setting up
the root domain, but there are some differences. Repeat the
tasks as for the root master in setting up the domain name, using
the correct NIS+ allows you to initialize clients using one of three methods: the broadcast method, which is the least secure of all and therefore not recommended; the host name method, which is more secure than broadcast and can be used if you know your network can be trusted, that is, you know nobody will be masquerading as the host name you specify; or the cold start method, which is the most secure and recommended method (Listing 4A). You copy the NIS+ SubdomainsNow that the clients that will become servers of subdomains
have been set up, the task of setting up subdomains can begin.
This step is accomplished on the client that will become the
master of the subdomain by first setting the
You then create the tables within the subdomain using
NIS+ Replica ServersSetting up replica servers can be accomplished only after a
client has been set up and the client has been converted to a
server. This step is accomplished by starting
Setting up clients within the various domains remains the only
task. The |
Print This Page Send as e-mail |
Best of the Web
Data deduplication: Declawing the clones
Data deduplication is emerging as a critically important new arrow in the storage administrator's quiver to answer hard questions about the increasing problem in storage growth costs.
Compression, Encryption, Deduplication, and Replication: Strange Bedfellows
One of the great ironies of storage technology is the inverse relationship between efficiency and security: Adding performance or reducing storage requirements almost always results in reducing the confidentiality, integrity, or availability of a system.
WAN Optimization Whitelists and Blacklists
Optimization is a fantastic way of saving money and creating really happy customers at the same time, but it doesn't work flawlessly for all applications.
WAN Optimization as a Managed Service: It's Not About the Cost
This insight examines how organizations outsourcing their WAN optimization initiatives to a third-party go about achieving their goals for application performance, reducing operational costs, and streamlining enterprise infrastructure.





