[EMAIL PROTECTED] wrote:

> Hi,
>
> Is there a way to discover iPlanet�s DIT topology programmatically?  Upon
> initial investigation, there doesn�t seem to be any way to retrieve this
> information easily over LDAP from a single server.
>

ldapsearch -h $ldaphost -p $ldapport -D $ldap_dirmanager -w $ldap_dirmgr_password
-b '' -s 'base' 'objectclass=*' namingcontexts

Note that the argument to -b is two single quotes. (It may look like one double
quote, but it's not.)

The search will return a list of "search bases" to use as arguments to -b in later
ldapsearches.

This is just an example of one way to do it. You can do the same thing with
perldap.


Hope this helps...

Dave Kernen

Reply via email to