[Samba] [samba] getting files and ACLs from a fileshare in Python

May 12th, 2012 - 07:20 am ET by Jean-Daniel | Report spam
Hi,

I am weighing Python for an application which needs to connect to a
fileshare, to index the documents and also to retrieve the ACLs.

Is there an equivalent of the Java libjcifs in Python?

Given that the application will be running on Windows, what is the
best way to use the win32 API from Python?

If the application is running on Linux, I might be better off simply
mounting the share. Do you know a good way to read the ACLs for the
files?

There are few reference to Python wrappers to Samba4, what is the
status of this project?

In the end, if Python interaction with a fileshare are limited, I can
use C# which must be much better integrated with the windows API.
Isn't this wiser?

Thanks for you help,
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
email Follow the discussionReplies 1 replyReplies Make a reply

Replies

#1 Andrew Bartlett
May 17th, 2012 - 08:10 am ET | Report spam
On Sat, 2012-05-12 at 13:17 +0200, Jean-Daniel wrote:
Hi,

I am weighing Python for an application which needs to connect to a
fileshare, to index the documents and also to retrieve the ACLs.

Is there an equivalent of the Java libjcifs in Python?



Yes. in Samba master we have a python interface on our smb client
library, which also reads ACLs. We use it to manipulate group policies
in particular.

I have seen proposals to extend this layer, if it isn't enough at the
moment. It is released as part of Samba 4.0 alpha releases.

Andrew Bartlett

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

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

Similar topics