![]() |
Macintosh Development |
[Home]
[About Us]
[People]
[MIT Support Library]
[MIT Kerberos for Macintosh]
[Applications]
[Mac OS X]
[Miscellaneous Documentation]
[Information Systems]
![]() |
Kerberos Preferences on Mac OS X 10.2 Documentation |
This web page discusses the
edu.mit.Kerberos(Kerberos configuration) file: what's in it, where it goes, and how to configure it for distribution at your site.The information on this page applies to Mac OS X 10.2 only. For links to preferences documentation for other Mac OS versions, click here.
About the edu.mit.Kerberos File
Setting up a Configuration File Quick Guide
edu.mit.Kerberos File Locations (or, "Why are there two edu.mit.Kerberos files?")
About the edu.mit.Kerberos File
The
edu.mit.Kerberosfile is where the Kerberos v4 and v5 configuration information is stored on Mac OS X. (Formerly the Kerberos Login Library and Kerberos management application preferences were stored in it, but they now have their own preference files:edu.mit.Kerberos.KerberosLogin.plistandedu.mit.Kerberos.KerberosApp.plist.)The
edu.mit.Kerberosfile stores this information in its data fork, which contains the realm and server configuration information (the info that would be found in thekrb5.conffile on Unix). See the Kerberos Configuration section for more information.On some systems there may be two
edu.mit.Kerberosfiles. See the edu.mit.Kerberos File Locations section for more information about why this is so.
Setting up a Configuration File Quick Guide
We recommend that you read this entire page. However, if you are in a hurry to get Kerberos for Macintosh up and working:
You need to create an
edu.mit.Kerberosfile in the/Library/Preferencesdirectory which contains the realm and server configuration information for your site, although:
- if you upgraded from Mac OS X 10.1 with Kerberos for Macintosh 4.0, you probably already have a properly configured file and no changes are necessary to use it under Mac OS X 10.2;
- if you've run the Mac OS X 10.2 Kerberos Extras installer, you will already have a file in the correct place, but which contains MIT configuration information (which is provided as a guideline);
- if you have a functioning Mac OS 9.x Kerberos installation, you can simply copy the
Kerberos Preferencesfile from theKerberosfolder inApplication Supportfrom your Mac OS 9 volume to the/Library/Preferenceson your Mac OS X volume, and rename it toedu.mit.Kerberos.Otherwise:
- Create a file named
edu.mit.Kerberosin/Library/Preferences, using BBEdit, emacs, or Codewarrior (it must be a plain text file);- Place Kerberos realm and server configuration in the data fork of this file. See the Kerberos Configuration section for the proper format.
Note - while there may also be an
edu.mit.Kerberosfile in your/Users/username/Library/Preferencesdirectory, you should place your configuration information in the/Library/Preferenceslocation. (See edu.mit.Kerberos File Locations for more details.)
edu.mit.Kerberos File Locations (or, "Why are there two edu.mit.Kerberos files?")
Kerberos for Macintosh supports and looks for two copies of the
edu.mit.Kerberosfile - a "system"edu.mit.Kerberosfile that contains the configuration to be used by all users of the computer, and a "user"edu.mit.Kerberosfile, containing additional configuration for an individual user.The user
edu.mit.Kerberosis located in/Users/username/Library/Preferences(where "username" is the name of the user), and the systemedu.mit.Kerberosis located in/Library/Preferences.When KfM reads the configuration file, it first looks for it in the user location, and if it doesn't find it, then looks for one in the system location.
The typical case is to have the Kerberos configuration information in the system configuration file, and no user configuration file. However there may be circumstances where a user wants to have additional realm and server information not shared with other users on the same machine. You can add any additional realm and server configuration information to the user configuration file, and KfM will meld the two sets of information together. You should be careful to avoid duplicate entries - if you have the same entry with different information it is not guaranteed that the user config file will override the system config file (we hope to fix this in a future release), or you may see the same realm listed twice if it is in both files.
Having just a user configuration file and no system configuration file to fall back on is permitted, but not recommended.
On Mac OS X, the system Kerberos configuration file
edu.mit.Kerberosshould be placed in/Library/Preferences.
About Kerberos Configuration Information
The Kerberos v4 and v5 configurations are stored in the data fork of
edu.mit.Kerberos.This text is similar to that of
krb5.confon Unix machines orkrb5.inion Windows machines. The configuration tells Kerberos for Macintosh what realms exist, what Kerberos versions are supported by them, and where to find the servers. You should edit this file for your site by opening theedu.mit.Kerberosfile in a text editor that will save the file as pure text again (ie: BBEdit, emacs, or CodeWarrior; but not TextEdit or Microsoft Word).Once you are done editing the
edu.mit.Kerberosfile, you should reboot or log out, and then you need to use the "Edit Favorite Realms" feature of the Kerberos management application to add your realms to the pop-up menu in the Login dialog.Here is an example Kerberos configuration:
[libdefaults] default_realm = ATHENA.MIT.EDU noaddresses = TRUE [realms] ATHENA.MIT.EDU = { kdc = kerberos.mit.edu.:88 kdc = kerberos-1.mit.edu.:88 kdc = kerberos-2.mit.edu.:88 admin_server = kerberos.mit.edu. default_domain = mit.edu } MEDIA-LAB.MIT.EDU = { kdc = kerberos.media.mit.edu. admin_server = kerberos.media.mit.edu. } [domain_realm] .mit.edu = ATHENA.MIT.EDU mit.edu = ATHENA.MIT.EDU .media.mit.edu = MEDIA-LAB.MIT.EDU media.mit.edu = MEDIA-LAB.MIT.EDU [v4 realms] ATHENA.MIT.EDU = { kdc = kerberos.mit.edu. kdc = kerberos-1.mit.edu. kdc = kerberos-2.mit.edu. admin_server = kerberos.mit.edu. default_domain = mit.edu string_to_key_type = mit_string_to_key } UMICH.EDU = { kdc = kerberos.umich.edu. admin_server = kerberos.umich.edu. default_domain = umich.edu string_to_key_type = afs_string_to_key } [v4 domain_realm] .mit.edu = ATHENA.MIT.EDU mit.edu = ATHENA.MIT.EDU .umich.edu = UMICH.EDU umich.edu = UMICH.EDUThe
[libdefaults]section describes what the default behavior of the Kerberos libraries should be. You should always fill in the default realm. If you have Kerberos v5 at your site, you should also copy any other[libdefaults]from your site'skrb5.conforkrb5.ini.The
[realms]and[domain_realm]sections refer to Kerberos v5 realms. If your site is v4-only you should omit these sections. Otherwise just copy these sections from your site'skrb5.conforkrb5.ini.The
[v4 realms]and[v4 domain_realm]sections refer to Kerberos v4 realms. If your site is v5-only you should omit these sections. Otherwise you will need to create entries for each of the Kerberos v4 realms at your site. You must supply a Kerberos v4string_to_key_typefor each realm. Currently the type can be eithermit_string_to_keyorafs_string_to_key. If your site uses a different string_to_key function, please send us mail at krbdev@mit.edu.
Questions or comments? Send mail to macdev@mit.edu
Last updated on $Date: 2003/10/03 21:29:47 $
Last modified by $Author: smcguire $