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
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba