| United States-English |
|
|
|
![]() |
Installing, Configuring and Administering the Kerberos Server on HP-UX 11i: HP 9000 Networking > Chapter 4 AdministrationPrincipals |
|
A principal is a string that names a specific entity to which a set of credentials may be assigned. The general syntax of a principal is as follows:
The typical format of a typical Kerberos principal is: Administrative privileges for the Kerberos database are stored in the kadm5.acl. Each line in the file contains a principal, the privileges that the principal has and optionally the target to which those permissions apply. The privileges are represented by single letters; UPPER-CASE letters represent negative permissions. The permissions are:
Principals in this file can include the * wildcard. Given below is an example of a kadm5.acl file.
To set all privileges for the principals with the admin instance, type the following:
To set the privileges add, delete modify, change password, inquire and list for the principals with the admin instance, type the following:
To add a principal to the database, use the kadmin.local add_prinicpal command, which requires the "add" administrative privilege. This command adds a new principal with the given name into the database. The general syntax for adding a new principal is: kadmin.local: addprinc/ank [options] principal For example, to add a principal "admin", you would do the following:
The add_principal has the aliases addprinc and ank. To modify attributes of a principal in the database, use the kadmin.local modify_prinicpal command, which requires the "modify" administrative privilege. The general syntax for adding a new principal is: kadmin.local: modify_principal [options] principal To modify the principal "admin@finance.bambi.com" to disallow forwardable tickets, you need to do the following:
The modify_principal has the alias modprinc. To retrieve a listing of the attributes and/or policies associated with a principal, use the kadmin.local get_principal command, which requires the "inquire" administrative privilege in the acl file. The general syntax is: The get_principal command has the alias getprinc. For example, suppose you wanted to view the attributes of the principals kdc1/root@FINANCE.BAMBI.COM and kdc2@FINANCE.BAMBI.COM. You would type:
The get_principal command has a -terse option, which lists the fields as a quoted, tab-separated string. For example:
To list the principals, use the kadmin.local list_prinicpals command, which requires the "list" privilege in the acl file. The general syntax is: where expression is a shell-style global expression that can contain the wildcard character '*'. All principal names matching the expression are displayed. To delete a principal, use the kadmin.local delete_principal command, which requires the "delete" administrative privilege. The general syntax is:
This deletes the principal "admin@finance.bambi.com" from the Kerberos database. Therefore, if you want to reactivate this principal later, you will have to add it and enter the password again. The delete_principal has the alias delprinc. The -force option causes the delete_principal command not to prompt you for a confirmation. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||