[Samba] Using samba-python to query AD? Status of API?
infractory at gmail.com
Thu Nov 5 09:37:27 UTC 2015
2015-11-04 18:11 GMT+01:00 pisymbol . <pisymbol at gmail.com>:
> On Wed, Nov 4, 2015 at 11:09 AM, mathias dufresne <infractory at gmail.com>
> > Hi,
> > *Once you have installed Samba to be able to run it as Active Directory*
> > would have samba-tool available.
> > # which samba-tool
> > /usr/bin/samba-tool
> > # file /usr/bin/samba-tool
> > /usr/bin/samba-tool: Python script, ASCII text executable
> > # locate ldapcmp.py
> > /usr/lib64/python2.7/site-packages/samba/netcmd/ldapcmp.py
> > /usr/lib64/python2.7/site-packages/samba/netcmd/ldapcmp.pyc
> > /usr/lib64/python2.7/site-packages/samba/netcmd/ldapcmp.pyo
> > # file /usr/lib64/python2.7/site-packages/samba/netcmd/ldapcmp.py
> > /usr/lib64/python2.7/site-packages/samba/netcmd/ldapcmp.py: Python
> > ASCII text executable
> > I gave the commands because they help to find where are really these
> > They could be in some other directory on your system.
> > There are a lot of other (python) files in there.
> Hmph. This command doesn't look like its shipped in the standard
> samba4 CentOS RPMS. Bummer.
Perhaps that's why I initially wrote what I set in bold few lines earlier...
> Alright, I will grab it from the source tree and take a look!
More information about the samba