Using Ldp.exe to Find Data in the Active Directory

Using Ldp.exe to Find Data in the Active Directory

Notice
This article applies to Windows 2000. Support for Windows 2000 ends on July 13, 2010. The Windows 2000 End-of-Support Solution Center (http://support.microsoft.com/?scid=http%3a%2f%2fsupport.microsoft.com%2fwin2000) is a starting point for planning your migration strategy from Windows 2000. For more information see the Microsoft Support Lifecycle Policy (http://support.microsoft.com/lifecycle/) .

Ldp.exe is a Windows 2000 Support Tools utility you can use to perform Lightweig...
Ldp.exe is a Windows 2000 Support Tools utility you can use to perform Lightweight Directory Access Protocol (LDAP) searches against the Active Directory for specific information given search criteria. This also allows administrators to query data that would otherwise not be visible through the Administrative tools included in the product. All data that is returned in LDP queries, however, is subject to security permissions.

If you have already determined the name of the attribute to be used in the search, refer to the section "Searching the Active Directory for Specific Information" below. Otherwise, you need to determine the name of the attribute that correlates to the data to be used as the search criteria. To determine this, first follow the procedures in the section "Determining the Name of the Attribute to be Used in the Search".

Determining the Name of the Attribute to Be Used in the Search Insert the Window...

Determining the Name of the Attribute to Be Used in the Search

  1. Insert the Windows 2000 CD-ROM and open the Windows 2000 Support Tools kit. From \support\tools, run Setup.exe. This installs the Support Tools kit, which in turn installs LDP.
  2. On the Connection menu, click Connect.
  3. Type in the server name of a domain controller in the enterprise, verify that the port setting is set to 389, click to clear the Connectionless check box, and then click OK. Once the connection is complete, server-specific data is displayed in the right pane.
  4. On the Connection menu, click Bind. Type the user name, password, and domain name (in DNS format) in the appropriate boxes (you may need to select the Domain check box), and then click OK. If the binding is successful, you should receive a message similar to "Authenticated as dn:'YourUserID'" in the right pane.
  5. On the Browse menu, click Search.
  6. The Base DN is the starting point in the Active Directory hierarchy at which your search will begin. In the Base DN box, type
    CN=Schema,CN=Configuration,dc=mydomain,dc=com
    replacing mydomain and com with the appropriate domain name. NOTE: the domain name for the Base DN when searching the Schema will always be for the root domain of the forest.
  7. In the Filter box, type
    (adminDescription=*yourtexthere*)
    replacing yourtexthere with a keyword that might describe the attribute you are looking for.

    Or, type
    (adminDisplayName=*yourtexthere*)
    replacing yourtexthere with a part of the name of the attribute as it is displayed in the administrative tools (e.g. entering "office" would return the attribute "physicalDeliveryOfficeName".)

    Or, type
    (ldapDisplayName=*yourtexthere*)
    replacing yourtexthere with a part of the name of the attribute as used in LDAP queries, if you know it.
  8. In the Scope frame, click Subtree.
  9. Click Options. In the Attributes box, type ldapDisplayName.
  10. Accept all other defaults, click OK and then click Run. After the query completes, the Distinguished Name (DN) of the object(s) found and the value of the ldapDisplayName attribute (now used in turn to search for data) of each are displayed in the right pane.

    For example, doing a search on any attributes that have the text "office" in the "adminDisplayName" would yield the following output:
    ***Searching... ldap_search_s(ld, "cn=schema,cn=configuration,dc=mydomain,dc=com", 2, "(adminDisplayName=*office*)", attrList, 0, &msg)
    Result <0>: (null)
    Matched DNs:
    Getting 3 entries:
    >> Dn: CN=Phone-Office-Other,CN=Schema,CN=Configuration,DC=mydomain,DC=com
    1> lDAPDisplayName: otherTelephone;
    >> Dn: CN=Physical-Delivery-Office-Name,CN=Schema,CN=Configuration,DC=mydomain,DC=com
    1> lDAPDisplayName: physicalDeliveryOfficeName;
    >> Dn: CN=Post-Office-Box,CN=Schema,CN=Configuration,DC=mydomain,DC=com
    1> lDAPDisplayName: postOfficeBox;

Searching the Active Directory for Specific Information

Once the attribute name has been determined, either specified in documentation or by using the procedure outlined above in the section "Determining the Name of the Attribute to be Used in the Search", you can use the following steps to find objects in the Active Directory that meet the criteria you are looking for.

The name of the attribute (ldapDisplayName) is used in queries to determine which objects should be returned based on meeting criteria supplied by the user.

  1. Run Ldp.exe from the Support\Reskit\Netmgmt\Dstool folder on the retail Windows 2000 CD-ROM.
  2. On the Connection menu, click Connect.
  3. Type in the server name of a domain controller in the enterprise, verify that the port setting is set to 389, click to clear the Connectionless check box, and then click OK. Once the connection is complete, server-specific data is displayed in the right pane.
  4. On the Connection menu, click Bind. Type the user name, password, and domain name (in DNS format) in the appropriate boxes (you may need to select the Domain check box), and then click OK. If the binding is successful, you should receive a message similar to "Authenticated as dn:'YourUserID'" in the right pane.
  5. On the Browse menu, click Search.
  6. The Base DN is the starting point in the Active Directory hierarchy at which your search will begin. In the Base DN box, type
    dc=mydomain,dc=com
    replacing mydomain and com with the appropriate domain name to search for objects such as users, computers, contacts, groups, file volumes, and printers.

    Or, type
    CN=Configuration,dc=mydomain,dc=com
    replacing mydomain and com with the appropriate domain name to search the Configuration partition of the Active Directory which includes such objects such as Sites, Subnets, Site Links, Site Link Bridges, and Forest structure.

    Or, type
    CN=Schema,CN=Configuration,dc=mydomain,dc=com
    replacing mydomain and com with the appropriate domain name to search the Schema partition of the Active Directory which includes the classes and attributes defined for the Forest of which the domain controller is a member.

  7. In the Filter box, type
    (AttributeName=*yourtexthere*)
    replacing AttributeName with the name of the attribute (as defined by ldapDisplayName) and replacing yourtexthere with the search criteria such as in the following examples:
    (physicalDeliveryOfficeName=*Seattle*)
    Or,
    (badPwdCount=1)
  8. In the Scope frame, click Subtree.
  9. Click Options. In the Attributes box, type the name of each of the attributes that should be displayed for each object found that meets the specified criteria separated by semicolons.

    For example, by requesting that all objects (users intended in this example) whose "physicalDeliveryOfficename" contains "Seattle", display the User Profile Path and Logon Script path of each of the users (or other object types) found. The following would be entered in the Attributes box:
    profilePath;scriptPath
  10. Accept all other defaults, click OK and then click Run. After the query completes, the Distinguished Name (DN) of the object(s) found and the value of the each of the attributes specified are displayed in the right pane.

    An example of the output would be as follows:
    ***Searching...
    ldap_search_s(ld, "dc=mydomain,dc=com", 2, "(physicalDeliveryOfficeName=*Seattle*)", attrList, 0, &msg)
    Result <0>: (null)
    Matched DNs:
    Getting 2 entries:
    >> Dn: CN=user1,CN=Users,DC=mydomain,DC=com
    1> profilePath: \\w2k-dc-01\profiles\user1;
    1> scriptPath: users.vbs;
    >> Dn: CN=user2,CN=Users,DC=mydomain,DC=com
    1> profilePath: \\w2k-dc-01\profiles\user2;
    1> scriptPath: users.vbs;

转载于:https://www.cnblogs.com/kungfupanda/archive/2011/11/29/2267730.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
### 回答1: 这个显示意味着您的电脑上的某个办公软件(Kingsoft WPS Office)出现了问题。错误信息显示了一个指向某个文件(r3ldp.dll)的路径,该文件可能没有被正确指定在Windows上运行,或者该文件可能存在错误。 要解决这个问题,您可以尝试使用软件的原始安装媒体重新安装程序。您可以使用该软件的安装光盘或下载安装文件,按照重新安装程序的步骤进行操作。 如果重新安装软件无法解决问题,您可以联系系统管理员或软件供应商寻求支持。系统管理员可能可以提供更详细的解决方案或帮助您检查其他可能引起该问题的因素。软件供应商通常会有技术支持团队,他们可以为您提供专业的帮助和支持,解决软件相关的问题。 总之,这个显示意味着某个办公软件遇到了问题,您可以尝试重新安装该软件或联系相关人员获取支持以解决问题。 ### 回答2: 这段提示意思是电脑显示在运行办公软件时发生了错误。错误的具体内容是显示D盘上的一个文件(r3ldp.dll)无法在Windows上运行,可能是因为该文件不存在或者包含错误。建议尝试使用原始安装光盘重新安装该软件,也可以联系系统管理员或软件供应商以寻求帮助和支持。 ### 回答3: 这个错误信息表示您的电脑在运行办公软件时遇到了问题。具体问题可能是由于d:办公软件路径下的r3ldp.dll文件无法在windows上运行或者该文件存在错误导致的。解决这个问题的方法有两个:一是尝试使用原始安装媒体重新安装办公软件,这可以修复可能存在的文件错误或配置问题;二是联系您的系统管理员或软件供应商以获取支持,他们可能能够提供更具体的解决方案或修复程序。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值