[Samba] Query AD from commandline

Bo Kersey bo at vircio.com
Wed Nov 12 12:18:12 MST 2014


Greg,
You should be able to use ldbsearch -H /path/to/sam.ldb with normal ldapsearch type queries.

Cheers!
Bo


----- Original Message -----
> From: "Greg Zartman" <gzartman at koozali.org>
> To: "samba" <samba at lists.samba.org>
> Sent: Tuesday, November 11, 2014 11:56:30 PM
> Subject: [Samba] Query AD from commandline

> I'm working on building some perl code to query a Samba AD and list various
> things.
> 
> I'm wondering if there is something like samba-tool for query user from the
> AD other than just the username?   I see that I can use and LDAP perl
> module to query the LDAP side of the AD, but wanted to see if Samba has a
> utility for doing this.
> 
> Thanks!
> 
> --
> Greg J. Zartman
> Board Member
> 
> Koozali Foundation, Inc.
> 2755 19th Street SE
> Salem, Oregon 97302
> Cell:  541-5218449
> 
> SME Server user and community member since 2000
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba

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


More information about the samba mailing list