• 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

Sun LDAP query to fetch group hierarchy

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

I want to fetch group hierarchy for one of the group in our Sun Directory ldap system.

I am using Pentaho 4.x version LDAP component to fetch LDAP groups hierarchy. But It fetches all the groups from the system
My requirement is to fetch full members hierarchy for a given group in LDAP.

What kind of search filter can be used?

Please let me know if you need more details.

Thanks,
Nikesh
 
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You need to set the base DN for your search. I've never used Pentaho so I can't tell you how to do this. Try searching the documentation for search base DN or search base distinguished name
 
niku shah
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the quick reply Joanne,

When I set Search base attribute in Pentaho = "ou=groups, dc=test,dc=comp,dc=net"

It returns ALL the groups hierarchy from LDAP

When I set it to one of the group, it returns all the direct members
"cn=MY_GROUP_NAME,ou=groups, dc=test,dc=comp,dc=net"

Now our requirement is to fetch group/user hierarchy of given group, "MY_GROUP_NAME"

Thanks
Nikesh

 
Joanne Neal
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You need to set the scope of your search. It appears that your first search id set to a subtree scope (which will return the entire hierarchy) whilst your second is set to One (which will only return immediate sub items).
 
If you settle for what they are giving you, you deserve what you get. Fight for this tiny ad!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic