[Samba] Query AD from commandline
Zerwes, Klaus
zerwes at rosalux.de
Fri Nov 14 00:45:34 MST 2014
List: samba-bounces at lists.samba.org [samba-bounces at lists.samba.org]" im Auftrag von "Greg Zartman [gzartman at koozali.org]
An: Bo Kersey
Cc: samba
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.
It is up to you to use python-ldap, per-ldap, ldap-tools, ldb-tools etc. Simply use your favorite.
It works as expected. We use python ldap api here for scripting and ldb-search for command line stuff.
Klaus
> Thanks,
> Greg
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
More information about the samba
mailing list