• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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.
reply
    Bookmark Topic Watch Topic
  • New Topic