The directory database, SAM, stores all security and user-account information for a domain. The master copy of the directory database is stored on the primary server and is regularly replicated to backup servers to maintain centralized security. When a user logs on to a domain, the Windows NT Server software checks the user name and password against the directory database.