[Date Prev][Date Next]
RE: How to query ldap root DNs ?
Following command line query gives me all the DNs from the files and I am able to parse them and use it as needed.
ldapsearch -x -b "cn=config" -H ldap://myserver-1:389 -D "cn=config" -w 'secret' -s 'sub' RootDSE
From: Michael StrÃder [mailto:email@example.com]
Sent: Wednesday, April 25, 2012 1:25 PM
To: Bhargav Mistry
Subject: Re: How to query ldap root DNs ?
Bhargav Mistry wrote:
> I need to query the root DNs for config and bdb databases so that I can use it
> in the tool but I am not sure how to query it ?
With OpenLDAP I'd look at the following attributes in the rootDSE and sort out
things that way:
Another option is to search under cn=Databases,cn=Monitor with filter
(monitoredInfo=bdb) reading attribute 'namingContexts' provided back-monitor
Your mileage may vary...
This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement,
you may review at http://www.amdocs.com/email_disclaimer.asp