Web lists-archives.com

Re: [Samba] Help Python API Samba4 -- Project Web Admin Manager Samba4




Basically all of the code using the libraries are either in:

samba4/lib/python2.7/site-packages/samba/tests
samba4/lib/python2.7/site-packages/samba/netcmd

Which is either the test code, or the command line tools. netcmd.user
and netcmd.group are the samba-tool commands for manipulating users and
groups. Apart from looking at how the code is used, there's just using
pydoc on the modules (or calling help(module) in the interpreter) --
which should document most but not necessarily all of its functionality.

Cheers,

Garming


On 15/06/18 07:52, Nilton OS via samba wrote:
>  Hello everyone,
>
> I would like to know how to use the Python api to manage user and groups in
> samba4.
> I'm developing a samba4 admin web interface I'd like some examples of how
> to interact with the libs in python that are in that folder:
> samba4/lib/python2.7/site-packages and samba4/lib/python2.7/site-
> packages/samba
>
>
> This is the project I am developing.
> https://github.com/jniltinho/go-samba4
>
>
>
>
> ..............................................................................................
>  *Nilton OS* <http://nilton.branded.me> | *Linux Expert 17 years ago* |
> LinuxPro <http://www.linuxpro.com.br>
>  The meaning of life is to cross borders
> *"Cert: LPIC-1, SUSE SCLA, ITILv3 2011"*


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba