File:  [NetBSD Developer Wiki] / wikisrc / kerberos / system.mdwn
Revision 1.7: download - view: text, annotated - select for diffs
Sat Aug 6 00:09:47 2011 UTC (6 years, 7 months ago) by schmonz
Branches: MAIN
CVS tags: HEAD
Disambiguate (I meant, not security/keychain), and
clarify (don't make it look like no-args kinit is supposed to work).

    1: [[!tag kerberos howto]]
    3: #### Why enable Kerberos on your system?
    5: Convenience and security. With
    6: [Kerberos](, 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).
   10: #### [[!toggle id="macosx" text="Mac OS X"]]
   11: [[!toggleable id="macosx" text="""
   12: OS X autodiscovers and uses the NETBSD.ORG KDC as defined in DNS.
   13: To use Kerberized TNF services, log in with your Kerberos [[password]]:
   15: `$ kinit <username>@NETBSD.ORG`
   17: The right-hand side is a Kerberos realm, not a DNS domain. Case is significant!
   19: ##### A trick
   21: To pop up a GUI password dialog:
   23: `$ kinit <username>@NETBSD.ORG </dev/null`
   25: Check "Remember this password in my keychain" to make future Kerberos
   26: logins (sans input redirection) prompt-free.
   27: """]]
   29: #### [[!toggle id="netbsd" text="NetBSD"]]
   30: [[!toggleable id="netbsd" text="""
   31: NetBSD needs to be configured to prevent Kerberos from being used
   32: to log into _your_ system, and then to enable Kerberos.
   34: 7. Either disable Kerberos auth for `sshd`, `login`, etc. in
   35: `/etc/pam.d`, or tell your relevant services not to use PAM.
   37:    /!\ Disabling KerberosAuthentication in `/etc/ssh/sshd_config` does **NOT** prevent `sshd` from invoking `` 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.
   39: 7. Create `/etc/krb5.conf` containing only the line `[libdefaults]`.
   41: NetBSD will now autodiscover and uses the NETBSD.ORG KDC as defined
   42: in DNS. To use Kerberized TNF services, log in with your Kerberos
   43: [[password]]:
   45: `$ kinit <username>@NETBSD.ORG`
   47: The right-hand side is a Kerberos realm, not a DNS domain. Case is significant!
   48: """]]
   50: #### [[!toggle id="windows" text="Windows XP"]]
   51: [[!toggleable id="windows" text="""
   53: Windows does not provide an easy way to configure and use KDCs different from the one embedded into an Active Directory.
   55: Therefore, to use [[Kerberos]], you should follow the following steps:
   57: 7. Download the [MIT Kerberos for Windows]( installer. It is composed of different tools traditionally found with Kerberos distributions, like [[!template id=man name=kinit section=1]] or [[!template id=man name=klist section=1]], and a Network Identity Manager, an application used to manage credential caching of Kerberos tickets.
   59: 7. Install the package. Use the default provided options, then restart the computer.
   61: 7. The Network Identity Manager [(PDF)]( should automatically start when you login. As there is no principal currently configured, it should open a dialog box to obtain the new credentials.
   63: 7. Enter your principal:
   65:         Username: <username>
   66:         Realm: NETBSD.ORG
   68: 7. Click `Ok`. After a few seconds, it should obtain the TGT for you from NetBSD.ORG KDC.
   70: """]]

CVSweb for NetBSD wikisrc <> software: FreeBSD-CVSweb