[Samba] Using samba-python to query AD? Status of API?
pisymbol at gmail.com
Thu Nov 5 14:59:11 UTC 2015
On Wed, Nov 4, 2015 at 4:44 PM, Rowland Penny
<rowlandpenny241155 at gmail.com> wrote:
> Ah, you want to search AD with python, as in 'ldbsearch -H
> /usr/local/samba/private/sam.ldb' (this will dump the AD database)
> You will find lots of 'examples' in the python 'samba' directory that an
> install of a samba DC creates, these are used by samba-tool, well actually,
> they are samba-tool :-)
No, I don't want to dump the LDB, I want to query an actual Windows DC
(same as 'net ads search' command).
> Also have a look here:
That module listing is not very helpful in itself, but I'll take a
look at the samba test examples to try to get a feel for it.
More information about the samba