If the environment variable AKLOG is set, its value will be used as the program to run with -t rather than the default complied into krenew. which you connect if the Stanford Kerberos servers know about this host, You can work around this by connecting If this flag is given, it will complain about the failure to standard ... KRB5CCNAME will be set to point to the ticket file before running the aklog program or any command given on the command line. Obtaining tickets. When run with either the -K flag or a command, always renew tickets each time krenew wakes up.
If AKLOG is not set and KINIT_PROG is set, its value will be used instead.
an AFS token after getting a Kerberos ticket.
Both users, like yourself, and Kerberized services, like HPSS and HSI, make use of Kerberos. Examples of how they are used follow. Add a stanza like this to your
This is an alternative to -a to ensure that tickets always have a certain minimal amount of lifetime remaining. run: It will tell you which system the load-balanced name is currently an alias http://www.eyrie.org/~eagle/software/kstart/. Authentication is the process of safely validating who you are to the HPSS archival system.
Run the program /usr/local/bin/compute-job in the background, checking every hour to see if the ticket needs to be renewed (the default). Be verbose.
Run in daemon mode to keep a ticket alive indefinitely. These are much simpler programs than SSH with far fewer options.
HSI will then issue you its own tickets which grant you access to the HSI service itself.
(Note: Stanford historically made local modifications to krenew renews an existing renewable ticket.
This is useful when debugging problems in combination with -b. A Kerberos service operates in a domain, which in the case of HPSS/HSI is UCAR.EDU. If you want to use rlogin or rsh, first set up a .k5login file as see what tickets Kerberos has obtained while using other services.
kinit—Authenticates with Kerberos as shown above. above, so you may want t. © Copyright Stanford University. (GSSAPI is an authentication protocol that ssh uses to support In this case you should explicitly enter a fully qualified principal for yourself. Ticket caches on Mac OS X are, by default, per-session and with -b krenew will detach itself from your existing ticket cache.
The default use of this is to run aklog to get a token. Make sure the directory that will contain the credentials cache has been created. This option is most useful in conjunction with -b to allow management of the running krenew daemon.
Kerberos principals identify users and/or services.
Role principals support both long-term unattended file transfers and group logins.
Kerberos client libraries exist that need to be installed on your local machines that allow you (or a service) to have client/server interactions with the KDC that authenticates you.
We hope to fix this bug in unlog destroys your AFS tokens. It is given to you by a special service principal with the name "krbtgt/[email protected].". Regular messages that are displayed on standard output are logged with level LOG_NOTICE. For example, if another program is automatically renewing a ticket more frequently than krenew, then krenew will never see a ticket that is close to expiring and will therefore, by default, never try to renew the ticket. The output will include your numerical user ID (12345 in the following example).
Active 6 years, 3 months ago.
If your local username is different than your SUNet ID, you will need to tell kinit your SUNet ID: kinit sunetid.
Get a Kerberos service ticket from the command line. have a world-readable public directory (one is created by default): Once that's set up, you need to enable GSSAPI authentication in your ssh
Using kdestroy will clean them out (and require you to re-authenticate with kinit, of course). Otherwise, it will obtain tokens in the current PAG. Stanford, California 94305.
due to the load-balancing.
~/.ssh/config and add: to that file.
Run
This will attempt GSSAPI authentication to any host to Kerberos gives you a ticket granting ticket if you are authenticated. Normally, when running a command or when run with the -K option, krenew keeps running even if it fails to renew the ticket cache as long as the ticket cache still exists and appears to be renewable.
canonicalization which works around the rlogin and rsh bug mentioned Some clients require you to be authenticated (via kinit) to change your password, others don't.
it in the right place. Renew the current ticket-granting ticket.
This will print out a bit of additional information about what is being attempted and what the results are.
between systems.
Ignore errors in renewing the ticket and keep running. You must do the kinit command interactively because you will have to provide your Kerberos passphrase; this cannot be put into a cron job or other unattended situation. but will fall back to other authentication mechanisms if Kerberos doesn't forward forwardable tickets (so that you can then forward tickets from Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. aklog to get AFS tokens, even if it isn't currently necessary.). You may receive With this option, krenew will renew tickets according to the interval specified with the -K flag.
This is a separate process with the KDC (the Kerberos service). If the command contains command-line options (like -c), put -- on the command line before the beginning of the command to tell krenew to not parse those options as its own. krenew will not background itself until after it does the initial ticket renewal, so that any initial errors will be reported, but it will then redirect output to /dev/null and no subsequent errors will be reported. The job, while running, will have an AFS token, but the output redirection is done in the parent shell and doesn't benefit from krenew.
In other words, the following command: won't work if /afs/local/data/output requires an AFS token to write to. krenew was written by Russ Allbery
First, ensure that your home directory contains a .k5login file. When you use HSI, it will trust you based on the ticket granting ticket the KDC issued to you.
If you are using Korn shell, use the following command.
It won't forward your If the -H flag is also given, the lifetime specified by it replaces the two minute default.
This is useful if some other process may recreate an expired ticket cache and krenew should stay around and act on that recreated ticket cache once it's present. rlogin and rsh at some point in the future. Note that an expired ticket cannot be renewed, even if the ticket is still within its renewable life.-k [-i | -t keytab_file] requests a ticket, obtained from a key in the local host’s keytab. run a command on the remote system, use: Similarly, you can use rcp -x to copy files (rcp just uses rsh You can always do a klist both to see your tickets and locate your credentials cache. Kerberos v4 is now obsolete, and those
The program normally exits with status 0 if it successfully renews a ticket. modifications are non-standard, however, and aren't present in the such a file is automatically created for you when your account
This allows krenew to maintain authentication for a command even if, for example, the user running the command logs out and OpenSSH destroys their original ticket cache.
Note the similarities and differences with UCAR's DNS domain, ucar.edu.
~/.ssh/config file: Replace host with exactly what you type on the ssh command line. I am in the process of debugging a Kerberos setup. A typical sequence looks like the following. If this option is not given but a command was given on the command line, the default interval is 60 minutes (1 hour).
krsh that supported Kerberos v4 as well as Kerberos v5 and adjusted
There are four basic Kerberos client commands to be aware of. For this example, we will authenticate, getting a ticket granting ticket, and list this out.
When using this option, consider also using -L to report krenew errors to syslog. The default ticket cache is determined by the underlying Kerberos libraries.
Result: Either your tickets are renewed to their full lifetime (if your ticket had the "renewable" property and were not expired), or the Kerberos Login dialog box is displayed (if your tickets didn't have the "renewable" property or they were expired).
krenew [-a b h i L s t v x] [-c child pid file] [-H minutes] [-K minutes] [-k ticket cache] [-p pid file] [command...] Description.
klist—Lists your ticket cache, which includes your ticket granting ticket and both current and expired HSI tickets. on your local system that stores all of your Kerberos tickets.
Use the kpasswd command to change your password to prevent it from expiring when this is close to happening (see below).
This means that krenew will also never renew AFS tokens, even if the -t option was given, since krenew only renews AFS tokens after it successfully renews a ticket.
Also, the name is fully qualified with the Kerberos domain UCAR.EDU. tell by looking in /etc/ssh/ssh_config. you trust that system to protect your identity, you can also forward your Typical ticket lifetimes are 24 hours, and renewable tickets can be renewed for up to 7 days.