ADP-ACTIVE DIRECTORY Programming-03

xiaoxiao2021-03-06  12

ADP20050314: Some nouns

ADP20050312: Some nouns

At this point we will use COM-based ADSI to write programs.

If you don't know much about the use and overview of COM ... You can refer to something too much.

OK, we don't need to understand COM's implementation mechanism, we need to understand that it provides a package that provides a relatively independent way for the communication between procedures. When we use the COM, we access the data by the interface it provides.

Adspath: We want to connect an AD service, you need such a string. Just as we have to access Google, you need to enter http://www.google.com in the address bar. This address will be carefully described below.

A AdSpath is similar to this:

LDAP: // cn = john doe, cn = users, dc = copperSoftware, DC = COM

What did this address information have been?

Gets The Directory Object Named John Doe in The Users Common Name Container in The CopPersoftware.com Domain.

Get a coppersoftware.com domain below the user group called John Doe.

The representation of the specific address is, we discussed below.

LDAP: [// Hostname [: portnumber] [/ distanceuishedname]]]

GC: [// Hostname [/ DISTINGUISHEDNAME]]]

Winnt: [// DomainName [/ computername [/ Objectname [, classname]]]]]]]]]]]]]

Winnt: [// DomainName [/ Objectname [, ClassName]]]

Winnt: [// computername [, Computer]]

DISTINGUISHED NAME AND RELATIVE DISTINGUISHED NAME:

LDAP: // cn = john doe, cn = user, DC = COPPERSOFTWARE, DC = COM is a distinguished name, which can fully determine an AD object.

CN = John Doe This is a Relative Distinguished Name that describes an object of an object. I understand that it is probably one or more RDNs to form a DN, of course, this is not exact.

It is important to note here that the rename problem in the RDN. This sentence is said: The Rdn of An Object Is Unique with ITS Container. It means that the RDN of an object is only unique in its container. Similar to our folder, it is a file container, the file in the folder cannot be renamed, but there can be the same name file in two different folders. But the path ensures their uniqueness, just like DN. The comma in Adspath is a grading symbol, similar to "/" in the "/" of our Windows "/" ... but it is the opposite of the file path of the operating system.

Naming attributes:

Let's take a look at the CN, DC .. meaning?

CN meaning common name

DC meaning Domain Component

We will also encounter:

Ou means Organizational-Unit

Wait, this name property also ensures that the same value does not conflict. We can see the display results of the two programs written above.

Understand how to represent an AD object, we can start accessing it.

转载请注明原文地址:https://www.9cbs.com/read-47120.html

New Post(0)