Subject: UPN vs SPN
Author: Alex_Raj
Posted on: 05/18/2006 11:57:36 PM
UPN stands for User Principal Name which is a unique identifier for the security identity of a user or computer. UPN takes the format of
<userID>@<DNS domain name>
UPN is stored in AD user account under attribute
userPrincipalName which is a unique within the FOREST security boundary. That's why DNS domain name must be portion of it (except for NT).
SPN stands for
Service Principal Name which is a unique identifier for the security identity of a user or computer. UPN takes the format of
<serviceClass>/<host>:<port>/<serviceName>
where
<serviceClass> -- a string identifying the service
<host> -- a NetBIOS or NDS name identifying the machine on which
the service is running.
<port> -- OPTIONAL, port number to which the service is listening
<serviceName> -- OPTIONAL
For example, a LDAP service running on machine myhost.mydomain.com listening to port 2389 takes a AD account with:
dn: cn=myhost,cn=user,dc=mydomain,dc=com
userPrincipalName: myhost@mydomain.com
servicePrincipalName: ldap/myhost.mydomain.com:2389
Replies:
References: