from .ldap import BaseLdapApplication
from ..xlate import XLATOR
-__version__ = '0.8.7'
+__version__ = '0.8.8'
LOG = logging.getLogger(__name__)
_ = XLATOR.gettext
local_alias = self.existing_aliases[cn]
mail = local_alias['alias']
- if self.verbose > 2:
- LOG.debug("Evaluating CN {!r} for modifications ...".format(cn))
+ if self.verbose > 3:
+ LOG.debug('Evaluating CN {!r} for modifications ...'.format(cn))
if mail in self.ldap_mail_dns:
if self.verbose > 2:
for dn in self.ldap_aliases:
entry = self.ldap_aliases[dn]
if mail in entry['mail']:
- if self.verbose > 2:
- LOG.debug("Evaluating DN {!r} for modifications ...".format(dn))
+ if self.verbose > 3:
+ LOG.debug('Evaluating DN {!r} for modifications ...'.format(dn))
modify_data = self._create_modify_alias_data(cn, entry)
if modify_data:
self.aliases_to_modify[dn] = modify_data
if attrib_name.lower() == 'objectclass':
tgt_attrib_values = tgt_attribs[attrib_name].as_list()
if self.verbose > 4:
- LOG.debug('Target values for {!r}:'.format(attrib_name) + '\n' + pp(tgt_attrib_values))
+ LOG.debug('Target values for {!r}:'.format(attrib_name) + '\n' + pp(
+ tgt_attrib_values))
values_add = []
values_del = []
return attr_changes
-
# -------------------------------------------------------------------------
def _create_ldap_entry_for_compare(self, cn):
- """Creates an entry analogue to normalized_attributes() by the alias antry."""
+ """Create an entry analogue to normalized_attributes() by the alias antry."""
local_alias = self.existing_aliases[cn]
entry = CIDict()
oclasses = CIStringSet()