• ×
    Information
    Windows update impacting certain printer icons and names. Microsoft is working on a solution.
    Click here to learn more
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
  • ×
    Information
    Windows update impacting certain printer icons and names. Microsoft is working on a solution.
    Click here to learn more
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
Guidelines
The HP Community is where owners of HP products, like you, volunteer to help each other find solutions.
HP Recommended

I am trying to configure an ldap query to setup a corporate directory. I was given an example to work with. I got it to work, but it also includes former employees. I want to exclude certain OUs or only query certain OUs. 

The example is here:

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<!-- LDAP Example for Active Directorty Server -->
<!-- 10.252.75.201-->
<LDAP>
  <directory>
    <sort dir.corp.sortControl="0" />
    <vlv dir.corp.vlv.allow="0" />
    <cache dir.corp.pageSize="16" dir.corp.cacheSize="64" />
    <addr dir.corp.address="ldap://10.252.75.201" dir.corp.port="389" dir.corp.transport="tcp" />
    <baseDN dir.corp.baseDN="dc=t2voice,dc=tech-support,dc=lab" dir.corp.filterPrefix="(objectclass=person)(!(objectclass=computer))(telephoneNumber=*)" dir.corp.scope="sub" />
    <sync dir.corp.backGroundSync="1" dir.corp.backGroundSync.period="3600" />
    <view dir.corp.viewPersistence="0" />
    <attr1 dir.corp.attribute.1.name="sn" dir.corp.attribute.1.label="Last Name" dir.corp.attribute.1.type="last_name " dir.corp.attribute.1.filter="" dir.corp.attribute.1.sticky="0" />
    <attr2 dir.corp.attribute.2.name="givenName" dir.corp.attribute.2.label="First Name" dir.corp.attribute.2.type="first_name" dir.corp.attribute.2.filter="" dir.corp.attribute.2.sticky="0" dir.corp.attribute.2.searchable="0" />
    <attr3 dir.corp.attribute.3.name="telephoneNumber" dir.corp.attribute.3.label="Phone Number" dir.corp.attribute.3.type="phone_number" dir.corp.attribute.3.filter="" dir.corp.attribute.3.sticky="0" />
    <login dir.corp.user="ldap@t2voice.tech-support.lab" dir.corp.password="T3ch!ab" feature.corporateDirectory.enabled="1"/>
  </director
</LDAP>

I added the OUs to this line:
<baseDN dir.corp.baseDN="dc=t2voice,dc=tech-support,dc=lab

such as <baseDN dir.corp.baseDN="ou=users,ou=california,dc=t2voice,dc=tech-support,dc=lab
This is not working. How do I get it to do what I want it to do? I do not see anything in the documentation for this.



† The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the <a href="https://www8.hp.com/us/en/terms-of-use.html" class="udrlinesmall">Terms of Use</a> and <a href="/t5/custom/page/page-id/hp.rulespage" class="udrlinesmall"> Rules of Participation</a>.