I posted this over in /r/sysadmin as well but it's not generating much interest. Thought I'd try here as well. This script grew out of a manual process that I documented on my blog some months back. The general response was that it needed to be scripted.
So, I've scripted it and pushed it up to my GitHub: msktutil-script
The solution uses Kerberos to authenticate between the RHEL 5 (and clone) server and Active Directory. Samba is not an option for many reasons. Configuration and system-state management tools are not an option at this time either.
I'm not much of script writer so I'd appreciate anyone who can suggest ways to make this better.
Thanks.
EDIT: To avoid confusion, the blog post linked above was written some months back. While it offers some background it does not include quite a few changes that are present in the GitHub link. Additionally, the GitHub link also has a write-up as well that might clarify how the script is supposed to work. Please use the blog post as background only and the GitHub source as current.
[link][7 comments]