Welcome to the Monastery | |
PerlMonks |
Re: Net LDAPby shmem (Chancellor) |
on Jan 31, 2007 at 01:14 UTC ( [id://597476]=note: print w/replies, xml ) | Need Help?? |
You take that entry's dn as search base and search from there with filter '(objectClass=*)',
restricting your search scope to one-level (see ldapsearch of openldap; dunno right now how's that in
Net::LDAP). If you get results, it's a non-leaf-node.
<update> After RTFMing a bit, here's an example: searching 'dc=example,dc=com' this will print out all entries and their "leafness" under the base dn. Non-leaf entries are followed, searching the first child, until a leaf node is found. </update> But I might be parling heck.
In Section
Seekers of Perl Wisdom
|
|