Can ldbsearch do searches against AD?

Andrew Bartlett abartlet at samba.org
Thu Aug 13 19:16:20 UTC 2015


On Thu, 2015-08-13 at 12:14 -0700, Richard Sharpe wrote:
> On Thu, Aug 13, 2015 at 12:03 PM, Andrew Bartlett <abartlet at samba.org
> > wrote:
> > On Thu, 2015-08-13 at 11:47 -0700, Richard Sharpe wrote:
> > > Hi folks,
> > > 
> > > When I try to do this:
> > > 
> > >     ldbsearch -H ldap://hqengminp01.automation.nutanix.com
> > > 
> > > I get this:
> > > 
> > >     search error - 000004DC: LdapErr: DSID-0C09072B, comment: In
> > > order
> > > to perform this operation a successful bind must be completed on 
> > > the
> > > connection., data 0, v2580
> > > 
> > > Is there any way to bind?
> > 
> > It uses the common command line parsing code when it picks up the 
> > samba
> > plugins.  That means that when ldbsearch is installed with the 
> > samba
> > plugins (eg from a Samba build, or if packaged correctly and samba 
> > also
> > installed correctly) -Uusername works like every other Samba tool.
> > 
> > Andrew Bartlett
> 
> Yeah, I tried that:
> 
> Invalid option -Uagave: unknown option

Then you have installed and are running ldbsearch from an ldb package,
but not installed Samba to put the plugins in the right spot (the ldb
plugins dir).  The easy option is to (make the build system build and t
hen) use the in-tree one. 

Andrew Bartlett

-- 
Andrew Bartlett                       http://samba.org/~abartlet/
Authentication Developer, Samba Team  http://samba.org
Samba Developer, Catalyst IT          http://catalyst.net.nz/services/samba





More information about the samba-technical mailing list