[Samba] python scripting samba
Gémes Géza
geza at kzsdabas.hu
Mon Apr 15 22:34:00 MDT 2013
2013-04-16 01:30 keltezéssel, Geoff Crompton írta:
> Can someone point me to some documentation on scripting samba user and
> group management from python? I'd much rather not do this via calls
> out to samba-tool, and if I could do this remotely (via LDAP like
> calls) I'd be even happier.
>
> Cheers,
> Geoff
Have a look at the samba-tool code at:
/usr/local/samba/lib/python2.7/site-packages/samba/netcmd/
and
/usr/local/samba/lib/python2.7/site-packages/samba/provision/
There are really good examples of using SAMDb even remote ones.
Regards
Geza Gemes
More information about the samba
mailing list