self.src_server = None
# -------------------------------------------------------------------------
- def get_source_item(self, src_dn, tgt_dn, with_acl=False):
+ def get_source_item(self, src_dn, tgt_dn, with_acl=True):
"""Reading a single LDAP item."""
src_entry = None
# -------------------------------------------------------------------------
- def get_target_item(self, tgt_dn, with_acl=False):
+ def get_target_item(self, tgt_dn, with_acl=True):
tgt_entry = None
try:
self._migrate_entries(
self.struct_dns, fh=fh, force=False, is_root=True,
- with_group_entries=True, with_acl=False)
+ with_group_entries=True, with_acl=True)
except CommonLDAPMigrationError as e:
msg = "Abort migration by {c}: {e}".format(c=e.__class__.__name__, e=e)
LOG.error(msg)
for src_dn in self.all_entries:
try:
if self.migrate_entry(
- src_dn, fh=fh, force=False, with_acl=False, migrate_if_group=False):
+ src_dn, fh=fh, force=False, with_acl=True, migrate_if_group=False):
if wait:
time.sleep(wait)
except FatalLDAPMigrationError as e:
# -------------------------------------------------------------------------
def _migrate_entries(
self, cur_hash, fh, force=False, is_root=False,
- with_group_entries=True, with_acl=False):
+ with_group_entries=True, with_acl=True):
wait = self.config.wait_after_write
point = '<root>'
# -------------------------------------------------------------------------
def migrate_entry(
- self, src_dn, fh, force=False, with_acl=False,
+ self, src_dn, fh, force=False, with_acl=True,
migrate_if_group=True):
tgt_dn = self.mangle_dn(src_dn)