# rom ..config.ldap import DEFAULT_PORT_LDAP, DEFAULT_PORT_LDAPS
from ..config.ldap import DEFAULT_TIMEOUT
-__version__ = '0.11.0'
+__version__ = '0.11.1'
LOG = logging.getLogger(__name__)
_ = XLATOR.gettext
msg = _("Values to removed from attribute {!r}:").format(attrib_name)
LOG.debug(msg + '\n' + pp(values_del))
- if len(values_add) == len(src_attrib_values):
+ if len(values_add) == len(src_attrib_values) and len(values_del) == 0:
if len(values_add):
attr_changes.append((MODIFY_REPLACE, values_add))
else:
else:
attr_changes = [(MODIFY_ADD, src_attrib_values)]
+ if self.verbose > 3:
+ if attr_changes:
+ msg = _("Changes for attribute {!r}:").format(attrib_name)
+ msg += '\n' + pp(attr_changes)
+ else:
+ msg = _("No changes to attribute {!r}.").format(attrib_name)
+ LOG.debug(msg)
+
return attr_changes
# -------------------------------------------------------------------------