[Samba] Query AD from commandline

Greg Zartman gzartman at koozali.org
Thu Nov 13 19:15:49 MST 2014


On Wed, Nov 12, 2014 at 11:18 AM, Bo Kersey <bo at vircio.com> wrote:

> Greg,
> You should be able to use ldbsearch -H /path/to/sam.ldb with normal
> ldapsearch type queries.
>
>
That's definitely where I am leaning, but I'm wonding if it might be better
to use net::LDAP?   The problem with using the ldb tools is that you need
to essentially parse the output.  Perl is very good at this, but it leaves
a bit more to chance if something comes up you don't anticipate. The
net::LDAP module is little more of a sure bet, but it is also quite alot
more coding.

Thanks,

Greg


More information about the samba mailing list