• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Searching down an LDAP tree

 
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi guys,

We have the following query:

(&(objectcategory=group)(member=cn=User Name,ou=MyCompany,dc=mycompany,dc=com))

But when we run it (against Active Directory), it only searches for users in root ou folder (i.e. MyCompany). We have a whole bunch of ou's under this, but it doesn't search down the tree - it only searches that immediate folder.

Any ideas?

As a result, if the user isn't in MyCompany, but perhaps in a sub-folder, they aren't found - which is a bit limiting!

I'm not sure if this is active directory or just plain LDAP.

Help is greatly appreciated.

Cheers,

Steve
 
Bartender
Posts: 1638
IntelliJ IDE MySQL Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you are making the ldap search request using jndi, you would have to use Subtree Search scope in the search control.
This will enable search in subtrees also.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic