from .config import LDAPMigrationConfiguration
from .idict import CaseInsensitiveDict
-__version__ = '0.6.5'
+__version__ = '0.6.6'
LOG = logging.getLogger(__name__)
CFG_BASENAME = 'ldap-migration.ini'
src_attrs = ['aci', ALL_ATTRIBUTES]
tgt_attrs = [ALL_ATTRIBUTES]
+ tgt_dn = self.mangle_dn(src_dn)
+
src_status, src_result, src_response, _ = self.source.search(
- search_base=src_dn, search_scope=BASE, search_filter=sfilter,
+ search_base=tgt_dn, search_scope=BASE, search_filter=sfilter,
get_operational_attributes=True, attributes=src_attrs,
time_limit=self.config.timeout)
LOG.debug("Response of searching for source DN {dn!r}:\n{res}".format(
dn=src_dn, res=pp(src_entry)))
- tgt_dn = self.mangle_dn(src_dn)
if self.verbose > 1:
LOG.debug("Searching for target DN {dn!r}.".format(dn=tgt_dn))
tgt_status, tgt_result, tgt_response, _ = self.target.search(
from fb_tools.errors import FbError
from fb_tools.obj import FbBaseObject
-__version__ = '0.1.4'
+__version__ = '0.1.5'
LOG = logging.getLogger(__name__)
def __str__(self):
msg = "Key {key!r} must be of type 'str', but is of type {cls!r} instead."
- return msg.format(key=key, cls=key.__class__.__name__)
+ return msg.format(key=self.key, cls=self.key.__class__.__name__)
# =============================================================================