Questions tagged [distinguishedname]

The X.500 Directory (LDAP f.i.) uses distinguished names (DNs) as primary keys to entries in the directory. A DN is a sequence of relative distinguished names (RDN) connected by commas.

The X.500 Directory uses distinguished names (DNs) as primary keys to entries in the directory. The RFC 1779 defines the string representation of DNs, which are also used in the Lightweight Directory Access Protocol (LDAP) to transfer distinguished names.

The LDAP API references an LDAP object by its distinguished name (DN). A DN is a sequence of relative distinguished names (RDN) connected by commas. An RDN is an attribute with an associated value in the form attribute=value.

The following are examples of two distinguished names.

CN=Jeff Smith,OU=Sales,DC=Fabrikam,DC=COM
CN=Karen Berge,CN=admin,DC=corp,DC=Fabrikam,DC=COM

Sources: RFC 4514: LDAP String Representation of Distinguished Names and MSDN.

68 questions
0
votes
2 answers

Client endpoint certificate reference, how to find when there's a comma in the distinguished name parts?

We are trying to reference a certificate for a client endpoint configuration in our WCF configuration file. The configuration looks like this:
Lasse V. Karlsen
  • 380,855
  • 102
  • 628
  • 825
0
votes
4 answers

How to differentiate lines with one dot and two dot?

I want to extract a specific part of a sentence. My problem is that I have a list of sentences that each have different formats. For instance: X.y.com x.no x.com y.com z.co.uk s.com b.t.com how can I split these lines based on the number of…
UserYmY
  • 8,034
  • 17
  • 57
  • 71
0
votes
1 answer

For any entry in Active Directory does the DistinguishedName ever changes?

Let's say a group is created with one name. If the group is subsequently renamed, does its distinguishedName also change? I'm looking for a way to permanently track AD objects even if their display names or other properties change. If…
Matt
  • 25,943
  • 66
  • 198
  • 303
0
votes
2 answers

DN - Java JDNI LDAP - Common name vs User Id

Common name, lets say "John Smith" is used compose the DN, but is it posible to compose a full DN using UID. Im currently doing this and it works. Hashtable env = new Hashtable(11); env.put(Context.INITIAL_CONTEXT_FACTORY,…
0
votes
1 answer

Regular expression for parsing Active Directory distinguishedName

The value for distinguishedname in AD is typically in the format: CN=lastName\,firstName,OU=Users - XYZ,OU=Users-Test Place,OU=UsersAll,DC=Dom1,DC=Dom2 I would like to parse it using a regular expression and get back the following…
RT.
  • 435
  • 2
  • 9
  • 25
0
votes
1 answer

Memory getting Eaten up Issue

I am trying to find recursively the groups on folders and their distinguished names (DN) through an extensive structure of directories / subdirectories on a NAS share. I made code and it works, but it is slow and gobbles up memory for some reason. …
archcutbank
  • 419
  • 1
  • 6
  • 17
0
votes
2 answers

Getting error when sort based on DistinguishedName

I am connecting to LDAP and i am getting only classobject of type user, and i want only to get the Distinguished Name, when i dont do any sorting, (I comment the line of sorting) the results are coming just fine, the number of users are 13. and i…
msytNadeem
  • 173
  • 1
  • 4
  • 15
0
votes
1 answer

GetUserNameEx with NameFullyQualifiedDN doesn't return for 3-4 seconds, why?

I have a very weird problem and a question about a possible solution. I need to get a fully qualified distinguished name on a Windows computer from a program written in C++ (using native WinAPIs.) For that I use the following API: TCHAR…
ahmd0
  • 16,633
  • 33
  • 137
  • 233
1 2 3 4
5