 |
|
This document is NOT supported by Computing Services.
DO NOT contact the Help Center with questions on this document.
|
 |
Clusters Quick Setup for Leopard
This page provides the necessary resources for departmental system administrators to perform common setup items specific to the CMU environment.
Topics covered include LDAP & Kerberos, OpenAFS, Dock, and Login/Logout Hooks. Implementing all four sections will result in a machine(s) that:
- Do not require user account maintenance (creation, deletion, password change, etc.) activities
- Leverage Computing Services' existing Roaming Profile setup where users' preferences follow them between machines and clusters
- Provide a local home directory for user files and a link in that directory to the user's Andrew AFS home directory for network storage.
- Allow Kerberos-enabled applications such as Oracle Calendar to work as expected with Andrew services
LDAP & Kerberos
Setting up cluster Macs to use LDAP for Directory Services and Kerberos for authentication removes the burden to manage individual user accounts on each lab machine. Users will be able to login with their Andrew UserID and password to your machines. In addition, Kerberos-enabled applications such as Oracle Calendar will work without any additional configuration.
It is recommended that a local administrative account is also installed on each machine via the Accounts Preference Pane to perform routine maintenance tasks.
Note: At this time, it is not possible to use the campus LDAP servers AND restrict login access to the machine. If your machines are set up to use LDAP, anyone with a valid Andrew userID will be able to log in to them.
To set up your machine to use the Andrew LDAP and Kerberos servers, we suggest the following:
- Install the following files in the /Library/Preferences/DirectoryService directory:
- Install the following file in the /Library/Preferences directory:
- Install the following file in the /etc directory:
- Reboot the machine.
OpenAFS
OpenAFS may be installed to provide users with access to AFS. If you wish to install AFS, it is highly recommended that you first configure your machine to use the Andrew LDAP and Kerberos servers, as shown above.
OpenAFS may be downloaded as a package from the OpenAFS web site.
Once the OpenAFS package installer finishes, but before you allow it to reboot your machine, you will need to run the following command to complete the CMU-specific setup:
sudo echo andrew.cmu.edu > /var/db/openafs/etc/ThisCell
Unfortunately, the aklog_loginLogout plugin that would get tokens automatically under previous versions of Mac OS X does not work with Leopard. In order to get approximately the same functionality, you can install aklog into /Library/OpenAFS/Tools/bin. Users can then run aklog from a Terminal window to turn their Kerberos tickets into an AFS token, or you can run aklog inside of a login hook to get tokens for them. Our provided login hooks perform the latter step.
Dock Configuration
Note: This section is for historical reference. Computing Services'
"roaming profiles" currently utiliizes DFS space.
One of the sore points of Mac OS X in a distributed environment is its handling of Dock preferences. We have worked with a number of departmental administrators to fashion a standardized default dock that minimizes the number of broken links that show up when users move between departmental and public clusters. We urge anyone who is using Computing Services's roaming profile setup to take the following three actions to ensure that your users do not experience problems with their docks when moving between clusters:
- Use the agreed upon application naming scheme:
- Deploy the default dock:
- Deploy the provided dock fix-up files:
Login/Logout Hooks
The OS X login and logout processes allow for the running of arbitrary "hooks," or scripts. These scripts can perform a number of vital and useful tasks, such as resetting defaults, ejecting removable media, and creating user home directories.
We have provided stripped down versions of the login and logout hooks we use in our public clusters. These hooks should be usable as-is in deployments that wish to use the roaming profile approach we use in the public clusters, where ~/Library is symlinked into the user's AFS home directory. It is recommended however that you read through the scripts and verify that they do indeed do what you want. For admins considering other setups, they should serve as good cookbooks to develop their own loginhooks.
To set up the hooks:
- Create the directory /etc/cmu/hooks
- Download the LoginHook, LogoutHook, and hook-subs (hook utility subroutines) to your machine and install them into /etc/cmu/hooks.
- Make sure the scripts are executable by running the commands:
chmod 755 /etc/cmu/hooks/LoginHook
chmod 755 /etc/cmu/hooks/LogoutHook
chmod 755 /etc/cmu/hooks/hook-subs
- Enable the scripts as hooks by running the following commands:
sudo defaults write /var/root/Library/Preferences/com.apple.loginwindow LoginHook /etc/cmu/hooks/LoginHook
sudo defaults write /var/root/Library/Preferences/com.apple.loginwindow LogoutHook /etc/cmu/hooks/LogoutHook