Jean-Daniel
2012-May-12 11:17 UTC
[Samba] [samba] getting files and ACLs from a fileshare in Python
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,
Andrew Bartlett
2012-May-17 12:05 UTC
[Samba] [samba] getting files and ACLs from a fileshare in Python
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
Possibly Parallel Threads
- Can only access new SAMBA fileshare from Windows as privileged user SAMDOM/Administrator, not as an ordinary user.
- Can only access new SAMBA fileshare from Windows as privileged user SAMDOM/Administrator, not as an ordinary user.
- connection problem to fileshare for a certain user
- Can only access new SAMBA fileshare from Windows as privileged user SAMDOM/Administrator, not as an ordinary user.
- Windows Filesharing Limitations