Re: how could I find to meaning of the parameter?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Al Dunbar [MS-MVP] (alan-no-drub-spam_at_hotmail.com)
Date: 11/02/04


Date: Mon, 1 Nov 2004 20:55:04 -0700


"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:OYZreyIwEHA.1204@TK2MSFTNGP10.phx.gbl...
> cn = Common Name
> http://msdn.microsoft.com/library/en-us/dsglossary/adsi/c.asp
> dc = Domain Component
> http://msdn.microsoft.com/library/en-us/dsglossary/adsi/d.asp
> LDAP = Lightweight Directory Access Protocol
> http://msdn.microsoft.com/library/en-us/dsglossary/adsi/l.asp
>
> If your internal W2K+ Active Directory domain at work is yourcompany.com,
> and you're looking to pull in users in that domain, you'd use:
>
> cn=Users,dc=yourcompany,dc=com
>
> It's one of the rather sillier ways of referencing things in the
development
> world, in my opinion. :]

Agreed. But that is not the only way. Richard Mueller's site gives an
alternative (see http://www.rlmueller.net/LDAP_Binding.htm):

In some cases it might be necessary to include a server name in the LDAP
binding string. Usually, this is to refer to the copy of the object on a
particular Domain Controller. However, it sometimes is necessary on NT or
Win9x clients where DSClient has not been installed. In the example above,
we bind to the copy of the "cn= Joe" object that is on the domain controller
"MySvr".
Set objUser = GetObject("LDAP://MySvr/cn=Joe,cn=users,dc=MyDom,dc=com")

The server name can also be specified as a DNS host name. For example, the
above could be:

Set objUser =
GetObject("LDAP://MySvr.MyDom.com/cn=Joe,cn=users,dc=MyDom,dc=com")

The binding strings described so far have been in "Little-Endian" form. This
is by far the most common. However, there is also a "Big-Endian" form, with
elements in the binding string reversed and separated by slashes instead of
commas:

Set objUser = GetObject("LDAP://MyDC/dc=com/dc=MyDom/OU=Sales/cn=Test3")

/Al

> Ray at home
>
>
> "qq42935000" <dsf@e.com> wrote in message
> news:OEx3Z9HwEHA.3808@TK2MSFTNGP15.phx.gbl...
> > Set objGroup = GetObject _
> > ("LDAP://cn=Sea-Users,cn=Users,dc=NA,dc=fabrikam,dc=com") what does "cn
"
> > "dc" means? why there are two cns?what does LDAP means?
> >
>
>



Relevant Pages