[Samba] Query AD from commandline

Bo Kersey bo at vircio.com
Fri Nov 14 07:00:01 MST 2014

Probably better to learn python.  All of the samba utilities are written in it now.  I'm a perl guy too so the switch isn't too easy for me.


----- Original Message -----
> From: "Greg Zartman" <gzartman at koozali.org>
> To: "Bo Kersey" <bo at vircio.com>
> Cc: "samba" <samba at lists.samba.org>
> Sent: Thursday, November 13, 2014 8:15:49 PM
> Subject: Re: [Samba] Query AD from commandline

> 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

Bo Kersey 
VirCIO - managed network solutions 
4314 Avenue C 
Austin, TX 78751 
phone: (512)374-0500

More information about the samba mailing list