![]() |
![]() |
| |||||||||||||||||||||||||||||||||||||
The cred Table in DetailCredential information for principals is stored in a cred table. The cred table is one of the 16 standard NIS+ tables. Each domain has one cred table, which stores the credential information of client machines that belong to that domain and client users who are allowed to log into them. (In other words, the principals of that domain.) The cred tables are located in their domains' org_dir subdirectory.
For users, the cred table stores LOCAL credential information for all users who are allowed to log into any of the machines in the domain. The cred table also stores DES credential information for those users that have the domain as their home domain. You can view the contents of a cred table with the niscat command, described in Chapter 19, Administering NIS+ Tables. The cred table as shown in Table 12-3 has five columns: Table 12-3 cred Table Credential Information
The Authentication Type column, determines the types of values found in the other four columns.
Creating Credential InformationThere are several methods of creating and administering credential information:
The nisaddcred CommandThe command used to create credential information is nisaddcred. Note - You can also use the nispopulate and nisclient scripts to create credential information. They, in turn, use the nisaddcred command. These scripts are much easier to use, and more efficient, than the nisaddcred command. Unless your network requires special features, you should use the scripts. The nisaddcred command creates, updates, and removes LOCAL and DES credential information. To create credential information, you must have create rights to the proper domain's cred table. To update a credential, you must have modify rights to the cred table or, at least, to that particular entry in the cred table. To delete a credential, you must have destroy rights to the cred table or the entry in the cred table.
Related CommandsIn addition to the nisaddcred command described in this chapter, two other commands can provide some useful information about credentials: Table 12-4 Additional Credential-Related Commands
How nisaddcred Creates Credential InformationUse nisaddcred to create LOCAL and DES credential information. LOCAL Credential InformationWhen used to create LOCAL credential information, nisaddcred simply extracts the principal user's UID (and GID) from the principal's login record and places it in the domain's cred table. DES Credential InformationWhen used to create DES credential information, nisaddcred goes through a two-part process:
To encrypt the private key, nisaddcred needs the principal's Secure RPC password. When the nisaddcred command is invoked with the -des argument, it prompts the principal for a Secure RPC password. Normally, this password is the same as the principal's login password. (If it is different, the user will have to perform additional steps when logging in, as described in Secure RPC Password Versus Login Password Problem.) The nisaddcred command generates a pair of random, but mathematically related 192-bit authentication keys using the Diffie-Hellman cryptography scheme. These keys are called the Diffie-Hellman key-pair, or simply key-pair for short. One of these is the private key, and the other is the public key. The public key is placed in the public data field of the cred table. The private key is placed in the private data field, but only after being encrypted with the principal's Secure RPC password: Figure 12-3 How nisaddcred Creates a Principal's Keys ![]() The principal's private key is encrypted as a security precaution because the cred table, by default, is readable by all NIS+ principals, even unauthenticated ones. The Secure RPC Netname and NIS+ Principal NameWhen creating credential information, you will often have to enter a principal's rpc-netname and principal-name. Each has its own syntax:
| |||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||