1: [[!tag kerberos howto]]
3: ## Why enable Kerberos on your system?
5: Convenience and security. With
6: [Kerberos](http://web.mit.edu/Kerberos/dialogue.html), a single
7: login grants access to all NetBSD web services. Configuration is easy
8: and you only have to do it once (sometimes less).
11: ## NetBSD
13: NetBSD needs to be configured to prevent Kerberos from being used
14: to log into _your_ system, and then to enable Kerberos.
16: 7. Either disable Kerberos auth for `sshd`, `login`, etc. in
17: `/etc/pam.d`, or tell your relevant services not to use PAM.
19: /!\ Disabling KerberosAuthentication in `/etc/ssh/sshd_config` does **NOT** prevent `sshd` from invoking `pam_krb5.so` and prompting for a Kerberos password -- oops. Since you probably do not have a host key in the realm NETBSD.ORG you have little to fear from ssh's KerberosAuthentication method -- nothing can get tickets to use your machine, because there is no host instance for your machine shared between the NetBSD kerberos server and your local keytab. So, the bottom line: turn off UsePAM for `sshd` or adjust your PAM configuration; don't worry about KerberosAuthentication or GSSAPIAuthentication in `sshd` itself.
21: 7. Create `/etc/krb5.conf` containing only the line `[libdefaults]`.
23: NetBSD will now autodiscover and uses the NETBSD.ORG KDC as defined
24: in DNS. To use Kerberized TNF services, log in with your Kerberos
27: $ kinit <username>@NETBSD.ORG
29: The right-hand side is a Kerberos realm, not a DNS domain. Case is significant!
32: ## Mac OS X
34: OS X autodiscovers and uses the NETBSD.ORG KDC as defined in DNS.
35: To use Kerberized TNF services, log in with your Kerberos [[password]]:
37: $ kinit <username>@NETBSD.ORG
39: The right-hand side is a Kerberos realm, not a DNS domain. Case is significant!
41: ### A Keychain.app trick
43: To pop up a GUI password dialog:
45: $ kinit <username>@NETBSD.ORG </dev/null
47: Check "Remember this password in my keychain" to make future Kerberos
48: logins (sans input redirection) prompt-free.
51: ## Windows XP
53: Windows does not provide an easy way to configure and use KDCs
54: different from the one embedded into an Active Directory.
56: Therefore, to use [[Kerberos]], you should follow the following
59: 7. Download the
60: [MIT Kerberos for Windows](http://web.mit.edu/Kerberos/dist/#kfw-3.2)
61: installer. It is composed of different tools traditionally found
62: with Kerberos distributions, like
63: [[!template id=man name=kinit section=1]] or
64: [[!template id=man name=klist section=1]], and a Network Identity
65: Manager, an application used to manage credential caching of
66: Kerberos tickets.
68: 7. Install the package. Use the default provided options, then
69: restart the computer.
71: 7. The Network Identity Manager
73: should automatically start when you login. As there is no principal
74: currently configured, it should open a dialog box to obtain the
75: new credentials.
77: 7. Enter your principal:
79: Username: <username>
80: Realm: NETBSD.ORG
82: 7. Click `Ok`. After a few seconds, it should obtain the TGT for
83: you from the NETBSD.ORG KDC.
CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb