|
|||
1. Security Services (Overview) Part II System, File, and Device Security 2. Managing Machine Security (Overview) 3. Controlling Access to Systems (Tasks) 4. Virus Scanning Service (Tasks) 5. Controlling Access to Devices (Tasks) 6. Using the Basic Audit Reporting Tool (Tasks) 7. Controlling Access to Files (Tasks) Part III Roles, Rights Profiles, and Privileges 8. Using Roles and Privileges (Overview) 9. Using Role-Based Access Control (Tasks) 10. Role-Based Access Control (Reference) Part IV Solaris Cryptographic Services 13. Solaris Cryptographic Framework (Overview) 14. Solaris Cryptographic Framework (Tasks) 15. Solaris Key Management Framework Part V Authentication Services and Secure Communication 16. Using Authentication Services (Tasks) 19. Using Solaris Secure Shell (Tasks) 20. Solaris Secure Shell (Reference) 21. Introduction to the Kerberos Service 22. Planning for the Kerberos Service 23. Configuring the Kerberos Service (Tasks) 24. Kerberos Error Messages and Troubleshooting 25. Administering Kerberos Principals and Policies (Tasks) 26. Using Kerberos Applications (Tasks) 27. The Kerberos Service (Reference) 28. Solaris Auditing (Overview) 29. Planning for Solaris Auditing 30. Managing Solaris Auditing (Tasks) |
Kerberos Ticket ManagementThis section explains how to obtain, view, and destroy tickets. For an introduction to tickets, see How the Kerberos Service Works. Do You Need to Worry About Tickets?With any of the SEAM releases or the Solaris 10 release installed, Kerberos is built into the login command, and you will obtain tickets automatically when you log in. The Kerberized commands rsh, rcp, rdist, telnet, and rlogin are usually set up to forward copies of your tickets to the other machines, so you don't have to explicitly ask for tickets to get access to those machines. Your configuration might not include this automatic forwarding, but it is the default behavior. See Overview of Kerberized Commands and Forwarding Kerberos Tickets for more information on forwarding tickets. For information on ticket lifetimes, see Ticket Lifetimes. Creating a Kerberos TicketNormally, if PAM is configured properly, a ticket is created automatically when you log in, and you need not do anything special to obtain a ticket. However, you might need to create a ticket if your ticket expires. Also, you might need to use a different principal besides your default principal, for example, if you use rlogin -l to log in to a machine as someone else. To create a ticket, use the kinit command. % /usr/bin/kinit The kinit command prompts you for your password. For the full syntax of the kinit command, see the kinit(1) man page. Example 26-1 Creating a Kerberos TicketThis example shows a user, jennifer, creating a ticket on her own system. % kinit Password for [email protected]: <Type password> Here, the user david creates a ticket that is valid for three hours with the -l option. % kinit -l 3h [email protected] Password for [email protected]: <Type password> This example shows the user david creating a forwardable ticket (with the -f option) for himself. With this forwardable ticket, he can, for example, log in to a second system, and then telnet to a third system. % kinit -f [email protected] Password for [email protected]: <Type password> For more information on how forwarding tickets works, see Forwarding Kerberos Tickets and Types of Tickets. Viewing Kerberos TicketsNot all tickets are alike. One ticket might, for example, be forwardable. Another ticket might be postdated. While a third ticket might be both forwardable and postdated. You can see which tickets you have, and what their attributes are, by using the klist command with the -f option: % /usr/bin/klist -f The following symbols indicate the attributes that are associated with each ticket, as displayed by klist:
Types of Tickets describes the various attributes that a ticket can have. Example 26-2 Viewing Kerberos TicketsThis example shows that the user jennifer has an initial ticket, which is forwardable (F) and postdated (d), but not yet validated (i). % /usr/bin/klist -f Ticket cache: /tmp/krb5cc_74287 Default principal: [email protected] Valid starting Expires Service principal 09 Mar 04 15:09:51 09 Mar 04 21:09:51 nfs/[email protected] renew until 10 Mar 04 15:12:51, Flags: Fdi The following example shows that the user david has two tickets that were forwarded (f) to his host from another host. The tickets are also forwardable (F). % klist -f Ticket cache: /tmp/krb5cc_74287 Default principal: [email protected] Valid starting Expires Service principal 07 Mar 04 06:09:51 09 Mar 04 23:33:51 host/[email protected] renew until 10 Mar 04 17:09:51, Flags: fF Valid starting Expires Service principal 08 Mar 04 08:09:51 09 Mar 04 12:54:51 nfs/[email protected] renew until 10 Mar 04 15:22:51, Flags: fF The following example shows how to display the encryption types of the session key and the ticket by using the -e option. The -a option is used to map the host address to a host name if the name service can do the conversion. % klist -fea Ticket cache: /tmp/krb5cc_74287 Default principal: [email protected] Valid starting Expires Service principal 07 Mar 04 06:09:51 09 Mar 04 23:33:51 krbtgt/[email protected] renew until 10 Mar 04 17:09:51, Flags: FRIA Etype(skey, tkt): DES cbc mode with RSA-MD5, DES cbc mode with CRC-32 Addresses: client.example.com Destroying Kerberos TicketsIf you want to destroy all Kerberos tickets acquired during your current session, use the kdestroy command. The command destroys you credential cache, which destroys all your credentials and tickets. While this is not usually necessary, running kdestroy reduces the chance of the credential cache being compromised during times that you are not logged in. To destroy your tickets, use the kdestroy command. % /usr/bin/kdestroy The kdestroy command destroys all your tickets. You cannot use this command to selectively destroy a particular ticket. If you are going to be away from your system and are concerned about an intruder using your permissions, you should use either kdestroy or a screen saver that locks the screen. |
||
|