Mac OS X 10.5, iMac (Mid 2007): Stuck in a "loop" at the login window after upgrading

After installing Mac OS X 10.5 Leopard on a 20-inch or 24-inch iMac (Mid 2007) computer (ones that have an aluminum frame), you may not be able to log in at the login window. Your login name and password are apparently accepted, but after a blue screen appears for a few seconds, the login window reappears instead of your desktop.

More from Apple OS X Support ...