ntacls: add functions to backup and restore ntacls
authorJoe Guo <joeg@catalyst.net.nz>
Fri, 1 Jun 2018 01:50:05 +0000 (13:50 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 28 Jun 2018 07:25:09 +0000 (09:25 +0200)
commit132fa04c77c9428dcbc30c3b4abc4ff91467c3cf
tree02aa36c3c7f63c185a9dfde60ea0dc920fe742fa
parent1078c969abfa2f6c24e66eb7c2cafa6d1dc31f81
ntacls: add functions to backup and restore ntacls

1. backup a share online from a smb connection with ntacls using pysmb API.
2. backup a share offline from service path with ntacls using pysmbd API.
3. restore from tarfile with pysmdb API.

Signed-off-by: Joe Guo <joeg@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
python/samba/ntacls.py