Manually register ADAM service principal names in Active Directory

Applies To: Windows Server 2003 R2

To manually register ADAM service principal names in Active Directory

  1. Do one of the following:

    • Log on as a member of the Domain Admins group, and then open a command prompt.

    • Using run as, open a command prompt as a member of the Domain Admins group.

  2. Change the current directory to:

    Program Files\Microsoft ADAM\instancename\data

    where instancename represents the name of the ADAM instance.

  3. At the command prompt, type:

    dnsdomainname

    where dnsdomainname represents the name of the dnsdomainname.bat script file that ADAM Setup created for manually registering service principal names (SPNs) in Active Directory. ADAM uses the DNS domain name of the computer on which ADAM is running to name this file.

Notes

  • To open a command prompt, click Start, point to All programs, point to Accessories, and then click Command prompt.

  • SPN registration does not apply to ADAM instances running on computers that are joined to a workgroup, rather than to a domain.

  • If you do not register the SPNs for an ADAM instance running on a computer that is joined to a domain, you can still run the ADAM instance, but you will not be able to run the ADAM instance as part of a configuration set for which the replication security level has been set to 2. For more information about replication security levels, see Related Topics.

  • The dnsdomainname.bat file appears in the directory approximately one minute after ADAM installation is complete.

  • If the dnsdomainname.bat file does not appear after approximately one minute, the attempt of ADAM setup to register SPNs for the ADAM instance completed successfully.

  • The dnsdomainname.bat file contains repadmin /writespn commands, similar to the commands in the following table.

    repadmin.exe /writespn hostname.microsoft.com 
    ADD "CN=adam,CN=Users,DC=microsoft,DC=com"
    E3514235-4B06-11D1-AB04-00C04FC2DCD2-ADAM/netbioshostname:389
    
    repadmin.exe /writespn hostname.microsoft.com 
    ADD "CN=adam,CN=Users,DC=microsoft,DC=com"
    E3514235-4B06-11D1-AB04-00C04FC2DCD2-ADAM/dnshostname:389
    
    repadmin.exe /writespn hostname.microsoft.com 
    ADD "CN=adam,CN=Users,DC=microsoft,DC=com" ldap/netbioshostname:389
    
    repadmin.exe /writespn hostname.microsoft.com 
    ADD "CN=adam,CN=Users,DC=microsoft,DC=com" ldap/dnshostname:389
    

See Also

Concepts

Administering ADAM service principal names
Manually remove ADAM service principal names from Active Directory
Repadmin
Understanding ADAM replication and configuration sets