Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7700699
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T22:46:11+00:00 2026-05-31T22:46:11+00:00

for a application I need to grab all DN’s in a OU and show

  • 0

for a application I need to grab all DN’s in a OU and show them in a list box. the second part I Know how to do. but what I know is how to get the DN’s from the OU. I looked on internet but didn’t find what I was looking for. (Allot of how to get attributes from a DN. but not how to get de DN from a OU).

buildup DN:

CN=cn,OU=ou2,OU=group,OU=ou1,DC=dc2,DC=dc1

I suspect that I need to use ldap_search but not know how (what filter to use)

html:

<form class="frm_groep" action="index.php?pid=21" method="post">
  <div class="input">
    Naam:
    <input type="text" name="naamRecht" />
    <br />
    <br />
    Path LDAP:
    <input type="text" id="LDAP" name="LDAPgroep" />
    <br />
    <br />
    <select multiple="multiple" class="double" id="LDAPselection">
       here is where the DN's wil end up
    </select>
  </div>
  <div style="clear:both"></div>
  <div class="controles">
    <input type="reset" value="Legen" />
    <input type="submit" name="recht" value="Aanmaken" />
  </div>
</form>

the application will be written in PHP.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T22:46:12+00:00Added an answer on May 31, 2026 at 10:46 pm

    To retrieve all entries (which are distinguished names) subordinate to an entry (an ou
    in your example), an application must transmit a search request to the server and then
    interpret the response from the server. Search requests must contain at a minimum:

    • base object
    • scope of search (base, one, or sub)
    • filter
    • list of attributes to return with each matching entry

    The filter should be a filter that “filters” or “restricts” the entries returned from the
    server. For example, a filter of (objectClass=*) (a presence filter) will match all entries at
    or below the base object (depending on the scope) that have the objectClass attribute
    populated with data (which is all entries, since all entries must have at least one
    objectClass attribute. A filter of (objectClass=inetOrgPerson) will match all entries that
    have an objectClass attribute populated with the value inetOrgPerson. A filter of
    (cn=xyzzy) will match all entries that have a cn attribute with the specified value (an
    equality filter). Therefore, your filter should be chosen to return the entries that match the
    specified criteria. If you desire all entries subordinate to an entry (ou=whatever in your
    case), then you should us a filter of ‘(&)‘ or ‘(objectClass=*)‘.

    Your directory administrator may not permit retrieval of large numbers of entries, so the
    application coder should consult with the server administrators before attempting to retrieve
    large numbers of entries.

    see also

    • LDAP: Mastering Search Filters
    • LDAP: Search best practices
    • LDAP: Programming practices
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In the java web application need to select the file from server and print
I want to make an application that will grab the HTML from a website
I need LINQ to grab a whole table, but this seems not to be
Case: I need to feed my application a URL from any location on the
My ASP.Net application generates an <asp:Table> from the codebehind. What I need is for
I have an ALPHA application which allows you grab an obfuscated font from and
I have a commandline application coded in delphi that I need to call from
Hi every body i am new in iPhone application development. In my application need
In My application i need to read the RFIDs. How it will be possible.
In an application I need to execute other programs with another user's credentials. Currently

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.