???????? ?? ?? ADSI LDAP ??????? ?????? ????? ?? ??? ADO ?? ????? ???? ????

???? ?????? ???? ??????
???? ID: 187529 - ?? ???????? ?? ?????? ??? ?? ?? ???? ???? ???? ??.
??? ?? ??????? ???? | ??? ?? ??????? ????

?? ????? ??

??????

?????? ?????????? ???? ??????? (ADSI) ??????? ??????????? ?????? ????????? (LDAP) ??????? ???? LDAP ?????? ?????????? ??? ???????? ?? ??????? ?? ??? ActiveX ???? ???????? (ADO) ?? ????? ???? ?? ??? OLE DB ???????? ???? ???? ??? ?? ??? ADO ??????? ???????? ????? ?? "ADsDSOObject" ???? ?? ??? ???? ??????? ??? ??? ???? ????? ??? ?? ???????? ????????? ???? "", ??????? ???????? ?? ??? ??? (????? ????) ADO ??????? ???????? ?? ???? ?????? ???

??????? ???????? Execute ?????? ?? CommandText (???? ????????) ?? ???? ????? ?????? ???, ??????????? ?? ??????? ??? ?????? ?? composed LDAP ?????? ??:
   <LDAP://server/adsidn>;ldapfilter;attributescsv;scope
				
????:
  • ????? ??? (?? IP ???) ?? ?????????? ?? ????? ???? ???? ????? ?? ??? ???
  • adsidn ???????? ??? ?? (DN) ?? ??????? ????? ???? ?????? expressed ?? ??? ADsPath ?????? ?? ??? "/" ???????? ?? ???????? ?? ???? ?? ?? ???? ?? ????????? ?? ??? ????? ?? ???? ?? ?? ??? ?? ???? ??????? ???????? ??? ?? ??? X.500 ???? attributed ??? ?????? ?? ????? ?? ?? ???? ????
  • 1dap ??????? ??? ??????? LDAP ???????? ?? (rfc2254 ?????)?
  • attributescsv, recordset ??? ???????? ?????? ?? ??? ???? ???? ?? ??? ????????? ?? ??? ?? ?? ??? ????????? ???? ???
  • ??????? ?? ?? ??: ????, onelevel ?? subtree.
???:: rfc2253 LDAP syntaxes ?? ??? ?? ADSI LDAP ???????? ?????? ?? ????????? ???? ???

????? ?? ??? ADsPath, ???? ?? ??? ?????????? ?? cn ????????? ???? Exchange ????? ??? ??? ???????????? ?????? ???, ?? (URL ??????) ??? ????? CommandText ?? ????? ?? ???? ???:
      LDAP:<//server/o=organization/ou=site/cn=recipients>;
         (objectClass=*);ADsPath,objectClass,cn;subtree"
				
?? (??? attributed ??? ?? ??????):
     <LDAP://server/cn=recipients,ou=site,o=organization>, _
         (objectClass=*);ADsPath,objectClass;subtree
				

???? ???????

????? Visual Basic ????? ??? illustrates ?? ?????? ??:

????? ???

  Dim conn As ADODB.Connection
      Dim rs As ADODB.Recordset

      Set conn = New ADODB.Connection
      conn.Provider = "ADSDSOObject"
      conn.Open "ADs Provider"

      Set rs = conn.Execute( _ 
            "<LDAP://server/o=organization/ou=site/cn=recipients>;" _
            & "(objectClass=*);ADsPath,objectClass,cn;subtree")

      While Not rs.EOF
         Debug.Print rs.Fields(0).Value, rs.Fields(1).Value, _
               rs.Fields(2).Value
         rs.MoveNext
      Wend

      conn.Close


				

??????

??????? ?? ??????? LDAP RFCs, RFC 2253 ?? RFC 2254, ?? ???????? ?? ??? ????? ????? ???? ?? Microsoft ???????? ??? ?????:
221606??????? LDAP RFCs
???????? ??????? ?? ???, ???? ?? ???? ?????? ?? ????? ?? ???? ?? Microsoft ???????? ??? ?????::
275917PRB: ADSI 2.5 ?? MDAC 2.6 ?????? Issues

???

???? ID: 187529 - ????? ???????: 02 ?????? 2010 - ??????: 3.0
???? ???? ???? ??:
  • Microsoft Visual Basic 5.0 Professional Edition
  • Microsoft Visual Basic 6.0 Professional Edition
  • Microsoft Visual Basic 5.0 Enterprise Edition
??????: 
kbhowto kbmdacnosweep kbtophit kbmt KB187529 KbMthi
???? ?????? ????????
??????????: ?? ???? ?? ???? ??????? ?? ????? ?? Microsoft ????-?????? ?????????? ?????? ?????? ???? ??? ??. Microsoft ???? ??? ????-???????? ?? ????-???????? ????? ?????? ?? ???? ???????? ???? ?? ???? ????? ????? ??? ?? ??? ?????? ?? ???? ???? ???? ??? ????? ??. ???????, ????-???????? ???? ????? ???? ???? ???? ???. ?????, ????????, ?????-???? ?? ??????? ?? ???????? ?? ???? ???, ???? ?? ??? ?????? ???? ???? ??? ????? ??? ?? ???? ??. Microsoft ??????? ??? ???? ?? ?????? ?? ??????????, ????????? ?? ??? ?????? ?? ???? ????? ?? ???? ???????? ?? ??? ???? ????? ?? ??? ????????? ???? ??. Microsoft ????-?????? ?????????? ?? ????? ?????? ?? ?? ??? ??.
?????????? ?? ??????? ????????? ??????? ??:187529

??????????? ???

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com