????? ????????? ?? "Active Directory" ???????? ???? ????? ????? ???????

?????? ????????? ?????? ?????????
???? ???????: 269181 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???? | ?? ????

??????

????? ??? ?????? ??? ?????? "Active Directory" ?? ???????? ????? ???????. ?? ????? ??? ????????? ?? ???????? ???????? ???? ????? ????? ??????? ?????? ???????? ???? ????? ?? ????? ??? ?????. ?????? ????? ???? "????? ?????? ???????? ?????? ?????? ?????? ??????" (LDAP) ?????? ????.

??????? ????

????? ????? ?????? LDAP ??? ???? ?????? ??????:
attributename: ruleOID: = ??????
??? ??? attributename LDAPDisplayName ????? ruleOID ????? ?????? (OID) ????? ?????? ????? ?????? ???? ?????? ?? ?????? ??????? ???? ???? ????????? ????????. ????? ??? ????? ?? ????? ???? ??? ????? ????.

???? ?? ???? ???? ruleOID ??? ????????? ???????:
  • 1.2.840.113556.1.4.803 - ??? ?? ??????? LDAP_MATCHING_RULE_BIT_AND. ???? ????? ????? ??? ?? ???? ????? ???? ?? ??????? ?????? ?? ??????. ???? ???? ??????? ???? ??????? "AND" ????? ???????.
  • 1.2.840.113556.1.4.804 - ??? ?? ??????? LDAP_MATCHING_RULE_BIT_OR. ???? ????? ????? ??? ?? ?? ?? ??????? ?? ??????. ???? ???? ??????? ???? ??????? ????? ??????? OR.
???? ???? ????? ???? ????????? Active ???????? ??? ???????? ???? ?? ???????. ????? ???? ????? ??? ??? ????????? ?? ??? userAccountControl. ??? ????? ????? ?? ?????? ???????? ??????. ?? ????? ????? ?????? ???? ???? ????? UF_ACCOUNTDISABLE ????? 0x02 (2 ??????). ?? ???? ???? ????? ????? ??????? ???????? ???? userAccountControl ?? ?????? ?? UF_ACCOUNTDISABLED ???:
(UserAccountControl:1.2.840.113556.1.4.803:=2)
?????? ???????? ????? ???????? Microsoft Visual Basic ?????? ????? ???? ????? ????? ??????? ????????:
Set oNSP = GetObject("LDAP://Win2000Server/rootdse")
Set oConfig = GetObject("LDAP://Win2000Server/" & oNSP.get("DefaultNamingContext"))

Set oConn = CreateObject("ADODB.Connection")
oConn.Provider = "ADSDSOObject"
oConn.Open ""

strQuery = "<" & oConfig.ADsPath & ">;(&(objectCategory=person)(objectClass=User)(userAccountControl:1.2.840.113556.1.4.803:=2));name,objectClass;subtree"

Set oRS = oConn.Execute(strQuery)
While Not oRS.EOF
  MsgBox oRS.Fields("name") 
  oRS.MoveNext
Wend

MsgBox "done"

Set oConn = Nothing
Set oRS = Nothing
Set oConfig = Nothing
Set oNSP = Nothing
				

?????

?????? ??? ???? ?? ????????? ??? ????? ??????? ????? ?????? LDAP ???? ????? ????? ??????? (SDK) ?? "?????? ???????". ?? ?????? ??? ??? ????????? ?? ????????? ??:

Networking and Directory Services
  Active Directory, ADSI, and Directory Services
     Active Directory
        Using Active Directory
           Searching the Active Directory
             Creating a Query Filter
                 How to Specify Comparison Values 

				
?????? ??? ???? ?? ????????? ??? ????? ??????? ????? ?????? LDAP ???? ????? ??????? ?? Platform SDK. ???? ??? ??????? \Microsoft PlatformSDK\Samples\NetDs\ADSI\Samples\ActiveDir\Attributes ????????? SDK\Samples\NetDs\ADSI\Samples\ActiveDir\GetSchemaInfo.

???????

???? ???????: 269181 - ????? ??? ??????: 09/????/1427 - ??????: 3.0
????? ???
  • Microsoft Active Directory Service Interfaces 2.5
  • Microsoft Active Directory Service Interfaces 2.5
  • Microsoft Active Directory Service Interfaces 2.5
????? ??????: 
kbmt kbhowto kbmsg KB269181 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????269181
????? ??????? ?? ????? ???? ?? ????? ???????
?? ????? ????? ?????? ???? ???? ???? ??? ??????? ??? ?? ? ?? ??? ??????? Microsoft ??? ????? ??? ??????? ????? ?????? ?????

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

 

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