Re: How do I connect to active directory?
- From: "Joe Kaplan" <joseph.e.kaplan@xxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 10 Oct 2006 15:34:12 -0500
UPN = userPrincipalName. It is one of the key identifying attributes in AD
used for security. It is typically in the form of an email address like
user@xxxxxxxxxxx UPN is unique across the entire AD forest, not just in a
specific domain. UPN can also be used for binding, both with an LDAP simple
bind and a secure SASL bind, so it is very useful in that regard. Users
often log into Windows with their UPN (although some use the plain username,
sAMAccountName, combined with their domain name).
You might want to get a query tool for AD like LDP or ADFind (just LDAP
clients) so that you can search AD to see if there is an object with
userPrincipalName=xxxx. If you plan to do any AD programming at all in any
language/platform, having a query tool you can trust will save you a lot of
time. Note that you do usually have to bind to search AD, so you might get
caught in a chicken/egg thing there. One solution is to run the tool from a
Windows box logged in to the AD domain so that you can take advantage of the
Windows/LDAP feature that allows you to bind to the directory as the
currently logged in Windows user. You can basically "bootstrap" from that.
Otherwise, getting some help from your AD admins might be useful.
Joe K.
--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--
"tman" <tlozina@xxxxxxxxx> wrote in message
news:1160510024.801425.29960@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Joe Kaplan wrote:
The 525 in the extended error code corresponds to the error "the
specified
user does not exist". Are you sure your username is a valid UPN in AD?
Joe K.
I am not so sure, how can I verify?
The MyUsername/MyPassword I used is what I would use to log ont o the
Windows server hosting this Active Directory.
What is a UPN?
.
- References:
- How do I connect to active directory?
- From: tman
- Re: How do I connect to active directory?
- From: Joe Kaplan
- Re: How do I connect to active directory?
- From: tman
- How do I connect to active directory?
- Prev by Date: Re: NTDS ISAM error on Domain Controller
- Next by Date: Re: Different Password Policy for Domain versus sub-Domain
- Previous by thread: Re: How do I connect to active directory?
- Next by thread: Re: Using scripts to block USB Storage in Group Policy
- Index(es):
Relevant Pages
|