aspose file tools*
The moose likes Security and the fly likes Sun LDAP query to fetch group hierarchy Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Security
Bookmark "Sun LDAP query to fetch group hierarchy" Watch "Sun LDAP query to fetch group hierarchy" New topic
Author

Sun LDAP query to fetch group hierarchy

niku shah
Ranch Hand

Joined: Aug 28, 2006
Posts: 41
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

Joined: Aug 05, 2005
Posts: 3734
    
  16
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


Joanne
niku shah
Ranch Hand

Joined: Aug 28, 2006
Posts: 41
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

Joined: Aug 05, 2005
Posts: 3734
    
  16
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).
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Sun LDAP query to fetch group hierarchy