Active Directory is quite unlike the Security Accounts Manager (SAM) database we all came to know and love. The SAM was Windows NT's mechanism for storing and managing domain account information, but under the new Windows 2000 regime, the SAM is largely deprecated. It's still used to handle local machine accounts, but domain accounts are stored in, replicated by, and controlled through Active Directory. This change has its good and bad points, which I'm not going to go into here. Instead, I want to focus on one significant change that's not obvious at first blush: how the security of your network is impacted by the presence of a new boot mode designed for use in disaster recovery.
Despite the fact that Active Directory is a core part of Windows 2000, it's really just a big database and some associated services and interfaces that allow you, and some system components, to modify, query, add, or remove directory data. That's actually good news. In Windows NT, if the domain SAM database were damaged, you couldn't boot the affected server, and you'd have to restore it pretty much from the beginning. In Windows 2000, you can use a special boot mode called Directory Services Restore (DSR) mode. You boot into DSR mode by pressing F8 during the boot process. When you do, it's essentially like booting a Unix machine into single-user mode: The system starts normally, but the directory services don't start. This allows you to restore the directory databases, services, and configuration from a backup and restart those services only when you're ready.
However, when you boot into DSR mode you still have to log on. Since Active Directory isn't available, the credentials you provide are validated against the same type of SAM database used in Windows NT, and that means there's still a SAM database on disk. This proto-SAM is built when you migrate an existing Windows NT domain to Windows 2000, or when you create a new Windows 2000 domain. It contains credentials for the administrator account used to log on in DSR mode as well as for some built-in users and groups, which are required for the system to boot into DSR mode.
The second measure is just as easy: Don't use the same password for multiple accounts. In particular, choose different passwords for the domain Administrator account (stored in Active Directory), and the DSR Administrator account (stored in the SAM). This rule is usually observed in the breach, but it's super valuable. If someone does get your SAM, do you want them to recover a password that's only useful for DSR mode, or one that unlocks your entire Active Directory treasure chest?
Thirdly, I recommend that you turn on auditing on the SAM file by using the appropriate group policy object. Of course, turning on auditing requires that you make an effort to periodically check the event logs for suspicious access. You might be thinking about the SYSKEY tool at this point (which I discuss at length in Chapter 9, "Administering the Registry," of Managing the Windows 2000 Registry). However, you should stop thinking about it. There's no way to apply SYSKEY to the DSR SAM, and SYSKEY itself is always on in Windows 2000.
Paul Robichaux is an experienced software developer and author and the principal of Robichaux and Associates, Inc. He has worked on Unix, Macintosh, and Win32 development projects over the past eight years, including a stint on Intergraph's OLE team. He is the author of Managing the Windows 2000 Registry, Managing the Windows NT Registry, and Managing Microsoft Exchange Server, all published by O'Reilly.
O'Reilly & Associates recently released Managing the Windows 2000 Registry.
Copyright © 2009 O'Reilly Media, Inc.