19.5 Sun's NIS+NIS was designed for a small, friendly computing environment. As Sun Microsystem's customers began to build networks with thousands or tens of thousands of workstations, NIS started to show its weaknesses:
To respond to these complaints, Sun Microsystems started working on an NIS replacement in 1990. That system was eventually released a few years later as NIS +. NIS + quickly earned a bad reputation. By all accounts, the early releases were virtually untested and rarely operated as promised. Sun Microsystems sent engineers into the field to debug their software at customer sites. Eventually, Sun worked the bugs out of NIS + and today it is a more reliable system for secure network management and control. An excellent reference for people using NIS + is Rick Ramsey's book, All About Administrating NIS+ (SunSoft Press, Prentice Hall, 1994). 19.5.1 What NIS+ DoesNIS + creates network databases that are used to store information about computers and users within an organization. NIS + calls these databases tables ; they are functionally similar to NIS maps . Unlike NIS , NIS + allows for incremental updates of the information stored on replicated database servers throughout the network. Each NIS + domain has one and only one NIS + root domain server . This is a computer that contains the master copy of the information stored in the NIS + root domain . The information stored on this server can be replicated, allowing the network to remain usable even when the root server is down or unavailable. There may also be NIS + servers for subdomains. Entities that communicate using NIS + are called NIS+ principals . An NIS + principle may be a host or an authenticated user. Each NIS + principal has a public key and a secret key, which are stored on an NIS + server in the domain. (As this is Secure RPC , the secret key is stored encrypted.) All communication between NIS + servers and NIS + principals take place through Secure RPC . This makes the communication resistant to both eavesdropping and spoofing attacks. NIS + also oversees the creation and management of Secure RPC keys; by virtue of using NIS +, every member of the organization is enabled to use Secure RPC . 19.5.2 NIS+ ObjectsAll information stored on an NIS + server is stored in the form of objects. NIS + supports three fundamental kinds of objects:
19.5.3 NIS+ TablesInformation stored in NIS + tables can be retrieved using any table column as a key; NIS + thus eliminates the need under NIS to have multiple NIS maps (such as group.bygid and group.byname) . NIS + predefines 16 tables (see Table 19.2 ); users are free to create additional tables of their own.
19.5.4 Using NIS+For users, using an NIS + domain can be remarkably pleasant. When a user logs in to a workstation, the /bin/login command automatically acquires the user's NIS + security credentials and attempts to decrypt them with the user's login password. If the account password and the NIS + credentials password are the same (and they usually are), the NIS + keyserv process will cache the user's secret key and the user will have transparent access to all Secure RPC services. If the account password and the NIS + credentials password are not the same, then the user will need to manually log in to the NIS + domain by using the keylogin command. NIS + users should change their passwords with the NIS + nispasswd command, which works in much the same way as the standard UNIX passwd command. NIS + security is implemented by providing a means for authenticating users, and by establishing access control lists that control the ways that those authenticated users can interact with the information stored in NIS + tables. NIS + provides for two authentication types:
Like UNIX files, each NIS + object has an owner , which is usually the object's creator. (An object's owner can be changed with the nischown command.) NIS + objects also have access control lists, which are used to control which principals have what kind of access to the object. NIS + allows four kinds of access to objects:
NIS + maintains a list of these access rights for four different kinds of principals: The way that NIS + commands display access rights similar to the way that the UNIX ls command displays file permissions. The key difference is that NIS + access rights are displayed as a list of 16 characters, and the first four characters represent the rights for "nobody," rather than "owner," as shown in Figure 19.2 . Figure 19.2: NIS+ access rights are displayed as a list of 16 charactersNIS + tables may provide additional access privileges for individual rows, columns or entries that they contain. Thus, all authenticated users may have read access to an entire table, but each user may further have the ability to modify the row of the table associated with the user's own account. Note that while individual rows, columns or entries can broaden the access control list, they cannot impose more restrictive rules. 19.5.4.1 Changing your passwordOnce a user has her NIS + account set up, she should use the nispasswd command to change the password: % nispasswd Changing password for simsong on NIS+ server. Old login password: fj39=3-f New login password: fj43fadf Re-enter new password: NIS+ password information changed for simsong NIS+ credential information changed for simsong % 19.5.4.2 When a user's passwords don't matchIf a user has a different password stored on their workstation and on the Secure RPC server, he will see the following message when he logs in: login: simsong Password: fj39=3-f Password does not decrypt secret key for unix.237@cpg.com. Last login: Sun Nov 19 18:03:42 from sun.vineyard.net Sun Microsystems Inc. SunOS 5.4 Generic July 1994 % In this case, the user has a problem because the password that the user knows and uses to log in, for some reason, does not match the password that was used to encrypt the password on the Secure RPC server. The user can't change his password with the nispasswd program, because he doesn't know his NIS password: % nispasswd Changing password for simsong on NIS+ server. Old login password: Sorry. % Likewise, the superuser can't run the nispasswd program for the user. The only solution is for the system administrator to become superuser and give the user a new key: # newkey -u simsong Updating nisplus publickey database. Adding new key for unix.237@cpg.com. Enter simsong's login password: fj39=3-f # This procedure sets the user's Secure RPC password to be the same as their login password. Note that you must know the user's login password. If you don't, you'll get this error: # newkey -u simsong Updating nisplus publickey database. Adding new key for unix.237@cpg.com. Enter simsong's login password: nosmis newkey: ERROR, password differs from login password. # After the user has a new key, he can then use the nispasswd command to change his password, as shown above. 19.5.5 NIS+ LimitationsIf properly configured, NIS + can be a very secure system for network management and authentication. However, like all security systems, it is possible to make a mistake in the configuration or management of NIS + that would render a network that it protects somewhat less than absolutely secure. Here are some things to be aware of:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|