[CentOS] How to query host membership in nested openldap netgroups?

Sat Mar 2 18:21:24 UTC 2013
Gelen James <hahaha_30k at yahoo.com>

Hi all,

I have a openldap server setup with netsted netgruops,. Say the netgroups are:

ngA: (host1, -, - ), (host2, -, - )
ngB: ngA, (host3, - - )
ngc: ngB, (host4, -, -)

Is there a way to find host1's membership? so that I can return: ngA, ngB, ngC?

Thanks a lot.
--Rob