mirror of
https://github.com/samba-team/samba.git
synced 2025-08-02 00:22:11 +03:00
python/samba: PY3 port samba4.blackbox.functionalprep
Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
committed by
Andrew Bartlett
parent
7562a5518f
commit
09f6b86403
@ -346,7 +346,7 @@ objectClass: container
|
||||
controls=["search_options:1:2"])
|
||||
|
||||
assert len(msg) == 1
|
||||
existing_sddl = msg[0][attr][0]
|
||||
existing_sddl = str(msg[0][attr][0])
|
||||
index = existing_sddl.rfind("S:")
|
||||
if index != -1:
|
||||
new_sddl = existing_sddl[:index] + ace + existing_sddl[index:]
|
||||
|
@ -27,6 +27,7 @@ import re
|
||||
import os
|
||||
import markdown
|
||||
import xml.etree.ElementTree as ET
|
||||
from samba.compat import get_string
|
||||
|
||||
|
||||
# Display specifier updates or otherwise (ignored in forest_update.py)
|
||||
@ -217,7 +218,7 @@ def read_ms_markdown(in_file, out_folder=None, out_dict={}):
|
||||
if node.text and node.text.startswith('|Operation'):
|
||||
# Strip first and last |
|
||||
updates = [x[1:len(x) - 1].split('|') for x in
|
||||
ET.tostring(node, method='text').splitlines()]
|
||||
get_string(ET.tostring(node, method='text')).splitlines()]
|
||||
for update in updates[2:]:
|
||||
output = re.match('Operation (\d+): {(.*)}', update[0])
|
||||
if output:
|
||||
|
Reference in New Issue
Block a user