TITLE
    Mac OS X Server: Binding Local NetInfo Database To An NIS Domain
Article ID:
Created:
Modified:
24895
4/30/99
10/31/00

TOPIC

    Network Information System (NIS) is similar to NetIfno in that it allows multiple computers to share administrative data that is stored on one computer. It is different because NIS uses the standard UNIX flat files for this administrative data, while NetInfo uses a distributed database. Configuring Mac OS X Server to be an NIS client should not affect NetInfo.


DISCUSSION

    Note: Configuration of Mac OS X Server as an NIS client is not supported by Apple. This article is provided as is with no warranty.

    This article assumes knowledge of NetInfo and its structure. For more information on NetInfo, please read the following article:

    Article 60038: " Mac OS X Server: What Is NetInfo? "

    Article 60038 also contains instructions on backing up the database which should be done before continuing.

    For Mac OS X Server to bind to an NIS domain, the /etc/hostconfig file must be changed and lookupd must be configured to use NIS. The user must be logged in as root, or be a member of the wheel group in order to make these changes.

    Edit the hostconfig file

    Open the /etc/hostconfig file with TextEdit or a command line text editor. Find the "NISDOMAIN" entry. This is set to "-NO-" by default. Remove "-NO-" and type in the NIS domain name that the computer will bind to. This information can be obtained from the NIS administrator.

    Configure lookupd

    To properly configure lookupd to use NIS directories, properties, and values must be added to NetInfo. For a description of how these are used in NetInfo read article 60038, mentioned above.

    Open /System/Administration/NetInfoManager. The window that opens will be for the local NetInfo domain. (See Figure 1.) In this window find the "Directory Browser" heading in the top left corner of the window. Below this heading are three columns, that show the directories contained in NetInfo. In the middle column select the "locations" directory and click the new directory button. A "new_directory" is created.

    In the lower half of the NetInfo window two columns are listed, "Property" and "Value(s)". Change "new_directory" in the value column by double clicking on it and typing lookupd. The window should now look like Figure 1.



    Figure 1: NetInfo window.

    You will not be prompted to save the changes until another directory in NetInfo is selected. Save the changes when prompted. After the changes are saved, another dialog box will appear asking for confirmation of the update. Click "Update this copy" for the changes to be finalized.

    Now the correct properties and values must be added to the lookupd directory. In the lower half of the window click "lookupd" under the Property column; the entire line is now selected. Open the "Directory" menu from the menubar. It is now possible to edit properties and values. Until this line was selected the options in this menu were dimmed.

    Use Figure 2 as a guide to add the properties and values to the lookupd subdirectory.



    Figure 2: NetInfo window with properties and values filled in.

    Now the lookupd directory has the properties and values that it needs. To finish the configuration, subdirectories for "users", "groups", "hosts", and "netgroups" must be added to the lookupd directory. These directories also need properties and values. If any of these subdirectories are not added NIS will not be consulted for this information. Use Figures 3, 4, 5, and 6 as a guide for adding the new subdirectories, properties, and values. The computer must be restarted for the changes to take effect.



    Figure 3: NetInfo window; users directory.



    Figure 4: NetInfo window; groups directory.



    Figure 5: NetInfo window; hosts directory.



    Figure 6: NetInfo window; netgroups directory.


Document Information
Product Area: Mac OS System Software
Category: Mac OS X Server
Sub Category: General Topics
Keywords: cnfg, kmosXserver

Copyright © 2000 Apple Computer, Inc. All rights reserved.