Kfm 4.0 For Mac

Posted on

Kerberos for Macintosh Product Overview Kerberos for Macintosh (KfM) is the reference implementation of the Kerberos authentication system for Mac OS X. KfM provides support for both Kerberos protocol versions, all the major Kerberos APIs and wraps it all into a simple Macintosh package with support for Mac OS X, as well as legacy support for Mac OS 8 & 9 and the Classic environment under Mac OS X. Under the hood, Kerberos for Macintosh provides Kerberos v5 and Kerberos v4 protocols, GSSAPI, an in-memory ticket cache, KClient compatibility and a graphical Login interface and accompanying API for acquiring Kerberos tickets. As result of a partnership between MIT and Apple, full Kerberos for Macintosh releases have been included in Mac OS X since 10.2 (Jaguar) which included KfM 4.5.1.

The current release is and ships with Mac OS X 10.4 (Tiger). The previous release was and shipped with Mac OS X 10.3 (Panther). The last release of Mac OS X 10.1, Mac OS 8 & 9 and the Classic environment of Mac OS X was. The for 10.2 through 10.4 are available from MIT.

. A port of the Unix SASL library, which lives in /usr/local/lib/libsasl2.dylib (or something like that) and with plugins in /usr/lib/sasl (which should be a symlink to /usr/local/lib/sasl). A framework which lives in /Library/Frameworks/SASL2.framework, and allows the use of the -framework option to Apple's ld, or linking with the framework in Project Builder. This framework is in fact a wrapper for a symlink to /usr/local/lib/libsasl2.dylib with the necessary information to recognize it as a framework.

This is what we expect many Cocoa and Carbon Mach-O applications will want to use. A CFM glue library ( /Library/CFMSupport/SASL2GlueCFM) which can be linked in by Carbon CFM applications, that uses CFBundle to bind the framework and thus load the Unix-level library. It automatically loads the important functions at saslclientinit or saslserverinit time; it also automatically makes sure memory allocation works if you're using the metrowerks malloc; if you're not, saslsetalloc works as usual.

Kfm 4.0 for mac download

A Carbon port of the existing CFM library for Mac OS 9. Note that this could probably be modified fairly easily to work on OS X, but there's not much point.

The CFM glue layer to the Unix library supports many more functions, including the entire server API; also, the Unix implementation is mostly independent of Kerberos implementation, while the Mac OS 9 Carbon port specifically requires MIT Kerberos for Macintosh 3.5 or later in order to get Kerberos support. The Mac OS 9 code implements only the client API, but this is mostly what is wanted from SASL on OS 9 anyway.

If you are building a Carbon CFM application and intend it to run on both OS 9 and OS X, you should link against the OS 9 Carbon SASL library, since it exports fewer APIs (client side only, specifically) than the OS X CFM glue. Your application should work seamlessly with both libraries if you do this, despite the different implementations underneath.

If you need a Carbon CFM application to support server-side SASL functionality, you need to link against the SASL2GlueCFM library, but be aware that your application will not run on OS 9. The Unix library is mostly ready to build on Mac OS X, but it does depend on the dlcompat package in order to load its plugins. Dlcompat-20010505 is the latest version and is known to work with SASL; it is provided with the distribution in a tarball.

You should make and make install the dlcompat library (which probably goes into /usr/local/lib/libdl.dylib) before attempting to./configure the SASL distribution itself. SASL will then pretend it's a real Unix libdl, and link against it. If you are using MIT Kerberos for Macintosh 4.0, which is fully supported by the SASL library, you should./configure with the added option -enable-krb4=/usr so that it finds the - -correct location for the header files.

KfM will be automatically - -detected by the configure script, and the correct libraries linked - -in. You must be root to make install, since /usr/local is only modifiable by root.

Kfm 4.0 For Mac Free

You need not enable the root account using NetInfo; the recommended (but underdocumented) method is to use sudo -s from the Terminal window when you are logged into an administrator's account, and enter the password for that account. When building on Mac OS X, make install will automatically add the framework to /Library/Frameworks.

This does not build the CFM glue library. Building the CFM glue library requires Metrowerks CodeWarrior Pro 6 or later (tested with 6), and the files necessary to build it are in the mac/osxcfmglue folder. The random code supports the preferred way to generate random numbers in Darwin. (In SASL v2, it does this on all unix-like platforms that lack jrand48). Symbols which are dlopened have an underscore prefixed. (This behavior is detected by configure in SASL v2.).

Plugins are linked with the -module option to libtool, which causes the -bundle option to be supplied to Apple's ld. (This is done on all platforms in SASL v2.). The MD5 symbols are renamed to avoid library conflicts. This allows proper compilations against Heimdal and MIT's unix kerberos distribution, and prevents crashes when linked against MIT Kerberos for Macintosh (which also duplicates the symbols, but in a different way).

Note that the MD5 symbols have local names on all platforms with SASL v2; this was only different in SASL v1. MIT Kerberos for Macintosh 4.0 is fully supported. This was accomplished by using krbgeterrtext if available and checking for additional names for the krb4 libraries. Caution You must make sure that all files have their correct HFS filetype before starting to build this code! In particular, all source and text files must be of type 'TEXT', which is not the default if you use the Mac OS X cvs client to check out the projects.

Kfm 4.0 For Mac Download

If you run into this problem, you may want to use a utility such as FileTyper to recursively change the type on all files. CodeWarrior is less picky about the projects' filetypes, but setting them to filetype 'MMPr', creator code 'CWIE' may be helpful in opening the projects from the Finder. Many of the important projects (for libdes, libsasl, buildplugins, and the sample client scshlb) have Carbon versions.

Kfm 4.0 for mac pro

Plugins are loaded from a Carbon subfolder of the SASL v2 folder in the Extensions folder. Plugins directly in the SASL v2 folder are considered to be for the Classic libraries.

Note that when using the buildplugins project, you must generate the plugin init files using the makeinit.sh script in the plugins directory. The easiest way to do this is to run the script from a Unix shell, such as Mac OS X.

Kfm 4.0 For Mac Pro

You must then fix the filetypes of the generated source files (see above). There is a new folder in CommonKClient called mackclient3 which contains code compatible with MIT's new API. This folder must be in your CodeWarrior access paths, the old mackclient folder must not, and it must precede the project's main folder. The kerberos4 plugin uses this new code.

The kerberos4 plugin also statically links the Carbon libdes, and no other part of Carbon SASL uses libdes directly. Your application should not link against libdes.shlb under Carbon!

(It causes problems due to DES symbols also existing in the MIT Kerberos library, which loads first. To build the projects, you should have the MIT Kerberos for Macintosh 3.5 installation disk images mounted, since the access paths include the absolute paths to the library directories from that image. It's easier than you having to find the paths yourself, and smaller than having to distribute the libraries with SASL.