???? ID: 255602 - ????? ???????: 02 ?????? 2010 - ??????: 2.0

XADM: ????????? ?? LDP ?????? ?? ????? ??????

?????? ??????This article applies to a different operating system than the one you are using. Article content that may not be relevant to you is disabled.

?? ????? ??

??? ?? ??????? ???? | ??? ?? ??????? ????

??????

LDP ?? ?? ??????? ??????????? ?????? ????????? (LDAP) ??????? ?????? ?? Microsoft Windows 2000 ?? ??? ????? ??? ?? ???? ????? ???? ?? ?? ?????? ?? LDP ?????? ?? ????? ?? ???? ??????-LDAP ?????????? ?? ??????? ???? ?? ??? ???? ?? ?????? ????? ?????

???:: Windows 2000 ?????? ????? ??? LDP ????? ??? ??? ?? ????? ??????? ???? ??, ?? ??????? ?? ???? ?? CD-Microsoft Windows 2000 ROM ??? ????? ?? ??:
Support\Tools\Setup.exe.

???? ???????

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

LDP ?????? ?? ????? ???? ??? ??????? ???????????? ??????, ?? ??? ?????? ?? ?? ?? ?????????? ???? ?? ?????? ???? ?? ?? ????? ?????????? ?? ???????? ???? ?? ??? ????? ???? ?? ??? ???????????

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

??? ????????.????? ???????????????, ????? ????? ????????? ???? ?? ?????? ?? ??? ?????????? ????? ??? ??? ???? ???? ??? ??OK?????? ??? ????? ?? ????????? ????, ???? LDP ???? ??? ??? ?? ?? ??? ????? ?????, ?? ???? ????? ????? (LOGONSERVER) ??? ???? ????? ????? ?? ??? ?????, ?? ??? ?????set????? ????????? ???

?? ?? ?????? ??, ?????????? "RootDSE" ????? ?? ???? ??? ??????? ????? ??? RootDSE ??????? ?? ?? truncated ?????? ?????????? ??:
ld = ldap_open("win2000-dc-01", 389);
Established connection to win2000-dc-01.
Retrieving base DSA information...
Result <0>: (null)
Matched DNs: 
Getting 1 entries:
>> Dn: 
	1> currentTime: 2/24/2000 20:30:12 Pacific Standard Time Pacific Daylight Time; 
	3> namingContexts: DC=redmond,DC=wa,DC=microsoft,DC=com; CN=Schema,CN=Configuration,DC=wa,DC=microsoft,DC=com; CN=Configuration,DC=wa,DC=microsoft,DC=com; 
	1> defaultNamingContext: DC=redmond,DC=wa,DC=microsoft,DC=com; 
	1> rootDomainNamingContext: DC=corp,DC=microsoft,DC=com; 
	2> supportedLDAPVersion: 3; 2; 
	1> dnsHostName: WIN2000-DC-01.redmond.wa.microsoft.com;
					
RootDSE ??????? ?????????? ?????? ???? ?? ??? ??????? ???? ?? ??? ?????? ??????? ?? ?????? ???? ??? ????? ????? defaultNamingContext ????????? ?? ??? ?????? ?????

???:: ??? ?? ????? ??? ??? RootDSE ??????? ?? ????? ???? ??? ??????: ???? DN ????????????? ????? ???? ?? ???????: ???? DN ????????????, ????? ??????????????????????????? ????? ???, ?? ?? ????? ????????: ???? DN ????????????? ??? ?? ?? ?????? ?? ????? ????, ?? ?? LDP ?? ????? ???????? ??? ?? ???? ????? ????? ?? ?????? ?? ??? ???

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

??? ???????????? ??????????????? ??, ?? ?? ???? ??? ???????? ????? ?????????? ?? ???? ?? ?? ?????? ???? ?? ??? ?????????? ????? ??????? ???? ??, ????? ?? ???? ?? authenticating ??????????? ???????? ???? ??? ??????? ???????????? ???? ????? ????? ?????? ???? ??????? ?? ??? ?? ?? ?? ?? ???????? ????? ?? ????? ????????? ????????????????? ??..

???:: ?????????.????? ????? ???, ??? ?? ??? ???? ?? ??? ????? ????Connectionless??? ????? ???, ?? ?? ?????????? ?? ??? ????? ???? ??? ?????? ??? ?? ???? ????? ?????? ????? ??????? ???? ??:
?????? <2>: ldap_bind_s() ????: ????????? ??????</2>
?????????? ?? ?????, ?? ??? ??????? ????????? ???? ???? ?? ?? ???? ?????????? ???? ?? ??? ????? ???? ??? ????????? ?? ?????? ??? ???? ?????????? ?? ????? ?? ??????? ?????????? ?? ??? ?????? ?? ?????? ????? ??? ?? ????????? ????????? ???? ???? ???? ???? ???? ?? ??????? ???? ???????? ?? ??? ???? ???? ?? ???????, ???????? ?? ??????? ????? ???? ???

???? LDAP ?????????? ?? ???? ????? ?????? ??? ????????? ?? ????????? ?? ???? ???? ?? ?? ???? ????????? ??? ????????? ??? ????? ????????? ???? ?????? ?? ?? ?? ???? ???? ??:
DC redmond, DC = wa, DC = microsoft, DC = = com
??? ?? ?? ????? ?????? ?? ??, ?? ?? ???? ?? ???? ?? ???? ????? ?? ??? ???:
Com\Microsoft\Wa\Redmond
?????? ?? ?????????? ???? ?????????? ??? ??????? ?????? ?? ???? ?? ??? ???????? ??????? ??? ?? ???????? ?????? ??? DC (????? ???), CN (??????? ???), ?? OU (????? ????) ??????? ?? ?????? ?? ????? ??? ?? ???? ?????, ?? ???????? ?? ???????? ??? ??? LDAP ?????? ?? ?????? ????

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

????? ????????????? ??,????. ?? ?? ???? ???????? ??? (DN) ?? ??????? ???? ?? ??? ??? ???? ??? ???????: ???? DN ???????????? ????? ???? ??? ??, ????? ????OK?? ?????? ???? defaultNamingContext ???? ??????? ???? ??? ?? ??? ???? ?? ?? ???? ??? ?? ???? DN, ???? ???? ?? ?? ????????? ????? ?? ??????? RootDSE ??????? ?? ??? ???

?????????? ???? LDP ?????? ?? ???? ??? ??? ????????? ???? ???? ??, ?? ?? ?? ???????? ?? ?????????? ?? ????? ?? ??? ?????????? ???? ?? ??????? ?? ???? ???? ?? ?? ?????????? ???? ??? ???? ???????? ?? ??? ????? ????, ??????? ??????? ???? ?? ?????? ??? ??? ????????? ???? ??? ?????? ?? ???? ?? ?? ???? differently ???????? ?? ??? ??????????? ????????? ??? ???? ?? ??? ????????????,??????. (??? ???? ?? ??????????? ?????????, ????? ??????????????????????????? ????? ???, ?? ?? ????????? ???????????? ?????????.) ??????? ?????????, ??????? ???? ?? ????????????????? ???? ????? ????? ??????? ?????? ????? ??? ???????? ???????, ?? ??? ??? ????????? ????? ?? ??? ??? ????????? ???? ?? ???? ??:
Ldp: ??????? ?????
??? ???? ?? ????????? ?? ??? ???????? ???? ?? ????? ?? ???, ?????? ??? ?? ????? ???? ?? ??? ?? ?????

?????? ???????? ?? ?????? ???? ?? ?? ??????? ?? ??? ??? ????? ?? ??? ??????? ????? ?? ??????????? ????, ??????????????? ??????? ???? ?? ??? ???? (????????? ???? ?? ??????? ??????????, ????? ??????????????????????????? ????? ???, ?? ???? ??? ??????????? ????, ????????? ???????????? ?? ??? ??? ??????.) ?? ???? ???? ??? ??????? ?????? ???? ??? ?? ??? ??? ???????????, ?? ???? ??? ????? ?????? ??? ??? ??????.

???? ??? ??? ???? ?????? ???????????, ?? ???? ??? ????? ???????. ?? ???? ??????? ???? ?? ???? ??????? ??????

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

??? ?? ???? ?????????? ?? ??? ?? ???? ??????? ?? ??????? ???? ????? ???, LDP ?????? ???? ???? ??????? ???????? ??? ?? ???????????? ?? ?????? ?????????? ?? ??????? ???? ?? ??? LDIFDE. exe ?????? ?? ????? ?? ???? ????LDIFDE. exe ?????? ?? ???? ??? ???????? ??????? ?? ??? Microsoft ???????? ??? ???? ????? ?? ??? ????? ???? ?????? ?? ????? ????:
237677  (http://support.microsoft.com/kb/237677/EN-US/ ) ????/??????? ???? ?? ??? ?????? ?????????? ?????????? ???????? ?? ??? LDIFDE ?? ????? ????
Exchange Server ??????? 5.5 ??? Exchange Server ?????????? ????????? ??? facilities ?? ??????? ??? ????? ???? ???For additional information about frequently asked questions on Exchange Server 5.5 import and export, click the article number below to view the article in the Microsoft Knowledge Base:
155414  (http://support.microsoft.com/kb/155414/EN-US/ ) XADM: Bulk Import/Export FAQ
The LDP utility is very useful for searching and filtering on specific objects if you understand its query syntax.

?? ?? ????? ???????????? ???????????menu, a dialog box is displayed in which you can set theBase DN,??????, ??Scopesettings for your query.

TheBase DNsetting defines where in the directory tree the search begins. If you use the file system folder analogy, theBase DNsetting defines the subfolder at which the search begins. The most commonly used base DN for an Active Directory search is theCN=Users,DC=....???????? ?? ????

???:: You can cut and paste from RootDSE information or other results information to avoid typing long base DN values.

TheScopesetting determines how far down in the directory tree to search. ???????? ??? ??,Scope???? ?? ??? ??? ??One Level, which is like searching the current folder in a file system. A one level search does not include the base DN object itself. To see the attributes of the base DN object, you must set theScope???? ?? ???????, or double-click the????object in the directory tree view. ??? ?? ??? ????Scope???? ?? ???Subtree, it is like searching the current folder and all of the subfolders of a file system.

The??????box allows you to construct queries. The following table lists the most commonly used LDAP query operators.
&	logical and 
|	logical or  
!	logical not
=	equal to 
~=	approximately equal to
>=	equal to or greater than
<=	less than or equal to
					
Most people find that the syntax of LDAP queries takes some getting used to, because operators are usually placed before rather than between operands. If an LDAP query expresses 2 + 2 = 4, it is written (+(2)(2)) = 4.

All of the query filters are enclosed by opening and closing parentheses. ???? ??????? ????? ????????? ?? ?? ??????? ???? ??? ??? ?? ????????? ???? ?? ?? ??? ?????? ????????? ????, ?? ???? ??? ?? ??? ???? ???? ??????

??????? AND ?? OR ???????? ????? ?? ?? ???? ??? ?????? ?? ???????, ?? ?????? ?? ?? ???????? ???? ?? ???? ?? ??? ???? ???? ?????? ????? ???? ?? ????? ???? ??? ??? ?? ???? ?? AND ?? OR ??? ??? ??; AND ?? OR ????? ????? ?? ????? ???? ???? ????????? ?? ???? ???, ???? ???? ?? ??? ?? ??????? ?? ??? ?? ????

?????? ?? ???, ??? ?? ??? ?? ?? ????? OR ???? ?? ???? ?? ????? ??? ????? ??? ?? ?? ???????????? ?? ??? ??? ???? ????? ???, ?????? ?? ????? ?? ???? ???? ??:
(&(objectClass=user)(givenName=John)(|(sn=Smith)(sn=Jones)))
					
! ????? (NOT ??????) ???? ?? ??? ??? ??? ??, ????? ?????? ??? ?? ??? ??? ???? ???? ?? ???? ??:
(&(objectClass=user)(sn=Jones)(!givenName=John)(!givenName=Jane)(!logonCount<=100))
					
??? ?????? ?????? ???? ????? ???? ??? ??? ?? ?? ???? ?? ??? ???? ???????????? ?? ?????? ?? ? ?? ???? ?? ??? ??? ??? ?? ???? 101 ?? ?? ????

?????? ?????? ?? ??????? ????? ????????????? ??? ????? ??? surnames ????? J: ?? ??? ??????? ???? ?? ???? ??? ?????????? ?? ??? ???? ??
(&(objectClass=user)(sn=j*))
					
?????? ?? asterisks ???? ??? ???? ?? ????? ?? ?? ??? ?? ???? ???, ?? LDP ?????? ??? ??? ?????? ???? ??? (* ???????? *) ??? ?? ?????? ??? substrings ?????? ?? ???? ??? ????? ?? ???? ???? ?? ??? ???? ??? ?? ???? ??, ?? ?? ?? ?? ?????? ?? ???? ??? ???? ??????????? ????, ????? ???? ????? ?? ????? ?????

????? ?? ???? ??? ???? ??????????? ????? ?? ?????? existence ?? ???? ??? ?? ??????? ?? ?????????? ?? ??? ??????? ???? ?? ???? ??? ?? ??? ???????????? ?? ???? Exchange Server ???????? ???? ?? ?? ?????? ????? ???, ?? ?? ???? ???? ?????? ?? ???????????? ?? lack ??????? ????? ?????? ?? ????? ?? ????msExchHomeServerNameValue::
(&(objectClass=user)(!msExchHomeServerName=*))
					
??? ?????? ??? ?????? ????, ???????? (\) ??? ?? ?? ??? ?? ??????? ???? ?? * () ?? NUL. ????? ?? ??? ??????? ?????? ?? ??? ?? ??????? ?? ??? ?? ??? ?? ??? ???, ???? ???? ??????? ?????? ???? ?? ?? ??????? ???? ???????? ?? ??? ????? ???????? ??? ?? ??? ???? ???? ?????:
*     2a
(     28
)     29
\     5c
NUL   00
					
?????? ?? ???, ??? ?? ??? ???????????? ?? ???? ??? ????????? ???? ??? ????? ???????? ??? ?????? ???? ?? ??? ??? ???? ????? ???, ?? ????? ????? ?????:
(&(objectClass=user)(displayName=*\29))
					
??? ?? ?????????? ?? ??? ?????????? ????? ??? G:\Accounting ?????? ????? ???, ?? ????? ??? ?? ????? ????:
(&(objectClass=user)(home-directory=G:\5cACCOUNTING*))
					
??? LDAP ?????? ??? ???? ???????? ????? signifies ?? ?????? ????, ??? ? ??? ???????? ?????????

??? ?? ???? ???? ????? ??????? ?? ??? ????????? ??? ?????? ???, ?? ?? ?? ???? ??? ?????? ??? ??? ?? ?? ??? ????????? ???? ?????? ????? ??? ????? ??????????????????????? ????? ?? ??????? ?? ??? ?? .. ?????????, ??????? ?? ???? ?? ????????? ???? ????? ??? ???????? ????, ?? ???????? ????????? ?? ?????? ????? ?????? ?? ???::
msExchHomeServerName DisplayName; ??-??????????;
??? ?? ???????????????????? ????, ?? ??? ?? ??????? ????? ??, ?? ??? ?? ??? ?? ???? ??? ????? ????????? ?? ???????? ???? ?????? ?????? ??? ?? ?? ??? ????????? ??? ???? ????

???:: LDP ?????? ???????? ??? ????? ?????? ?? ??? ??? ?????? ?????? ??? ?? ??? ?? ??? ???? ??? ?? ?? ??? ???????? ?? ?????? ?? ?????, ?? ????? ??? ?? ??? >> ???? ?? ???? ??? ???? ???????? ?? ????? ???? ?? ??? ?????

??????? ??? discovering

?????? ??? ???? ?? ?? ???????? ?????????? ??? ?? ???? ??? ?? ???? ????? ??? ????????? ???? ??, ????????? ???? ???? ???? ??? ?? ???? DN?????????????? RootDSE ??????? ?? ??? ???????? ???? ??? ??? ?? ?? DN ?? ??? ??? ?????????? ???? ????? ?? ????? ???, ?? ???? ???? (?????? ?? ??? ?? ???? ??? ?????????? ??????? ??? ?? HomeDirectory ?? ??? ??????????) ?????? ?? interesting ????????? ?? ??? ?? ???? ????

??? ???? ??? ?????? ?? ????? ?? ??? ?????? ???? ???, ?? ?? ??? ????????? ?? ?? ????? ?????????? ?? ??? ??????? ??? ?? ???????? ????????? ?? ??? ????? ????? ?? ??????? ???? ?? ??? ????? ?????????? ?? ?????? ??????? ?? ?????

???? ???? ???? ??:
  • Microsoft Exchange Server 5.5 Standard Edition
  • Microsoft Exchange 2000 Server Standard Edition
??????: 
kberrmsg kbinfo kbmt KB255602 KbMthi
???? ?????? ???????????? ?????? ????????
??????????: ?? ???? ?? ???? ??????? ?? ????? ?? Microsoft ????-?????? ?????????? ?????? ?????? ???? ??? ??. Microsoft ???? ??? ????-???????? ?? ????-???????? ????? ?????? ?? ???? ???????? ???? ?? ???? ????? ????? ??? ?? ??? ?????? ?? ???? ???? ???? ??? ????? ??. ???????, ????-???????? ???? ????? ???? ???? ???? ???. ?????, ????????, ?????-???? ?? ??????? ?? ???????? ?? ???? ???, ???? ?? ??? ?????? ???? ???? ??? ????? ??? ?? ???? ??. Microsoft ??????? ??? ???? ?? ?????? ?? ??????????, ????????? ?? ??? ?????? ?? ???? ????? ?? ???? ???????? ?? ??? ???? ????? ?? ??? ????????? ???? ??. Microsoft ????-?????? ?????????? ?? ????? ?????? ?? ?? ??? ??.
?????????? ?? ??????? ????????? ??????? ??:255602  (http://support.microsoft.com/kb/255602/en-us/ )