Can ldbsearch do searches against AD?

Andrew Bartlett abartlet at
Thu Aug 13 19:03:49 UTC 2015

On Thu, 2015-08-13 at 11:47 -0700, Richard Sharpe wrote:
> Hi folks,
> When I try to do this:
>     ldbsearch -H ldap://
> 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

Andrew Bartlett             
Authentication Developer, Samba Team
Samba Developer, Catalyst IT

More information about the samba-technical mailing list