Questions tagged [upn]

The UPN (User Principal Name) is an Internet-style login name for the user based on the Internet standard RFC 822.

The UPN (User Principal Name) is an Internet-style login name for the user based on the Internet standard RFC 822. The UPN is shorter than the distinguished name and easier to remember. By convention, this should map to the user's email name. The point of the UPN is to consolidate the email and logon namespaces so that the user need only remember a single name.

The UPN is the preferred logon name for Windows 2000 users. Users should be using their UPNs to log on to the domain. At logon time, a UPN is validated first by searching the local domain, then the global catalog. Failure to find the UPN in the local domain or the GC results in rejection of the UPN.

The UPN can be assigned, but is not required, when the user account is created. When assigned, the UPN is unaffected by changes to other attributes of the user object, for example, if the user is renamed or moved, or changes to the domains in the tree, for example, if a parent domain was renamed or a domain was moved. Thus, a user can keep the same login name, although the directory may be radically restructured. Be aware that the UPN can be changed administratively at any time. The UPN is a string attribute that can contain any string value. However, the following scheme is recommended.

The user principal name has two parts: the UPN prefix (the user account name) and the UPN suffix (a DNS domain name). The parts are joined together by the at sign (@) symbol to make the complete UPN. For example, the user Someone who has an account in the Example domain would have a UPN of "someone@example.com".

The UPN must be unique among all security principal objects within the directory forest. By default (that is, for the built-in user accounts and user accounts created using the Active Directory Users and Computers snap-in), the UPN can consist of any name for the user (such as the sAMAccountName attribute of the user) and the domain tree name to which the user belongs in the following form: @.

The "" is the domain name system (DNS) name of a domain, but is not required to be the name of the domain containing the user. However, the "" portion of the UPN must be the name of a domain in the current forest or an alternate name listed in the upnSuffixes attribute of the Partitions container within the Configuration container. You can add or remove UPN suffixes by modifying the upnSuffixes attribute (or by choosing Properties for the root node of the Active Directory Domains and Trusts and modifying the UPN suffixes on the UPN Suffixes tab). Usually, the "" is the name of the first domain in the first tree of the forest. In most cases, this domain name is the domain name registered as the enterprise domain on the Internet. The "" is formatted by binding to the rootDSE on any domain in the forest, reading the RootDomainNamingContext attribute, and then transforming this from DC format (dc=fabrikam,dc=com) to the UPN format (fabrikam.com) using the ADSI IADsNameTranslate interface.

When creating a new user object, you should check the local domain and the global catalog for the proposed name to ensure it does not already exist.

31 questions
13
votes
2 answers

UPN - User Principal Name

How I get my UPN from Active Directory? I need to test an app which uses Upn Claim type...
chugh97
  • 9,602
  • 25
  • 89
  • 136
6
votes
2 answers

How to get UPN for authenticated user in .NET web application, without querying Active Directory

(This question is similar to Get UPN or email for logged in user in a .NET web application, but not quite.) In a .NET (C#) web application using Windows authentication, I'd like to find the UPN of the signed-in user. I know how to do this by…
5
votes
2 answers

Not getting upn (unique principal name) in claims in Azure AD authentication

I am using Azure AD Authentication for my application for WEB API and I am able to get and ClaimsPrincipal and claims from token but I am not getting the "upn" ("http://schemas.xmlsoap.org/ws/2005/05/identity/claims/upn"), in the claims. I need upon…
Vignesh D
  • 53
  • 3
4
votes
1 answer

expected identity upn connecting to service as network service,

We have a web application, running in an application pool as 'NETWORK SERVICE'. The web application connects to a service (.svc) on another web server. The other web server also has the service hosted as 'NETWORK SERVICE'. I believe this is the…
Jim
  • 14,952
  • 15
  • 80
  • 167
3
votes
2 answers

LDAP Searching a user in Active directory with UPN

I am using LDAP Authentication, Need a help Suppose i have a user(user1@zzservers.ad), where zzservers.ad is a UPN Alias of demo.com domain , i already know of a way to search a user in active directory by domain. But Does anyone know about how to…
Charu Jain
  • 852
  • 1
  • 7
  • 18
2
votes
1 answer

Couldn't load the schema for the database model

I've published my power bi report and when I open it online I get this error. "Couldn't load the model schema associated with this report. Make sure you have a connection to the server, and try again. Please try again later or contact support. If…
2
votes
1 answer

Intune MAM SDK: How to get user-ID in iOS and Android?

I am using Intune for enrolling the app through the Company Portal app, and now my question is: How do I get the current users ID (UPN/e-mail) in Xamarin Forms? In Xamarin.iOS I am using the Intune Wrappers and it works fine with the Authentication…
2
votes
2 answers

Kerberos and multiple SPNs

I managed to setup Kerberos authentication for 1 server and is up and running ok. Now I have a project where I have to add another server to Kerberos configuration as follow: 1) AD server 2) server1 where service is running 3) server2 where same…
novak100
  • 1,259
  • 1
  • 12
  • 20
2
votes
1 answer

Set SPN same as UPN with Centrify on Linux

Hi I'm configuring Kerberos with Centrify on a linux environment. I'm much more familiar with Windows. I know with MIT Kerberos in Linux, I can create a new account using the SPN as UPN. Is this the same processes when using Centrify?
LakeMichigan
  • 677
  • 1
  • 7
  • 12
2
votes
0 answers

System.ServiceModel: A call to SSPI falied, Target Principle Name is incorrect

I am attempting to hit a WCF service endpoint. However, I keep getting the above exception on the server (when I check the logs) whenever I attempt to hit the service. The service basically has mutual certificate behaviour. It lists a Client…
SoftwareSavant
  • 9,467
  • 27
  • 121
  • 195
1
vote
2 answers

SharePoint UserProfile from User Principal Name in Claims environment

I have an account that has been persisted in a database using the User Principal Name (UPN) format: jdoe@domain.gobalx.com I am working in a SharePoint environment that is Claims authenticated using the UPN format. My problem is I need to get a…
user1212155
1
vote
1 answer

Firebase - Microsoft SSO returns UPN instead of the SMTP email address

I am using THIS Firebase documentation to create an SSO and it is working great, like expected but there is one problem for me, the sign up returns the UPN (User Principal Name) instead of SMTP address because the UPN is different from SMTP address.…
1
vote
1 answer

AAD Claims UPN vs On-Premise AD UPN

I thought UserPrincipalName (UPN) are single valued per user in the Directory, but when I run an LDAP query for a specific user, I get the UPN: AO0S0020@mydomain.local, And when running an OAuth (OpenId Connect) authorization against Azure AD (which…
Nati
  • 1,034
  • 5
  • 19
  • 46
1
vote
2 answers

How and when does ktpass set the salt?

A user's password and salt determine the Kerberos keys generated by ktpass. I have noticed that ktpass sometimes changes the user's salt, but other times it does not. I was able to discover the salt by capturing a packet trace of a kinit. The salt…
mlowry
  • 161
  • 5
  • 12
0
votes
1 answer

B2C non Verified Domains: Unable to update this user because the user principal name provided is not on a verified domain

A customer of ours changed the mail domain. So I would like to change the UPN on request of this customer. Azure B2C blocks with the Error: "Unable to update this user because the user principal name provided is not on a verified domain." $username…
Tobi
  • 109
  • 1
  • 1
  • 12
1
2 3