• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Sun LDAP query to fetch group hierarchy

 
niku shah
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • 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
 
Joanne Neal
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic