[Samba] is there an equivalent to libjcifs for Python?

Andrew Bartlett abartlet at samba.org
Wed Feb 20 19:42:44 MST 2013


On Wed, 2013-02-20 at 14:49 +0100, Jean-Daniel wrote:
> Hi list,
> 
> What tools in Python can I use to:
> - connect to a remote share
> - list the files
> - list the ACLS of the files
> - get the content

Samba 4.0 ships with python bindings for our CIFS client, and can do
exactly this.

See source4/scripting/python/samba/netcmd/gpo.py for an example of how
to use it (it does almost exactly this actually, in the context of GPO
manipulation).

Andrew Bartlett

-- 
Andrew Bartlett                                http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org




More information about the samba mailing list