# rom ..config.ldap import DEFAULT_PORT_LDAP, DEFAULT_PORT_LDAPS
from ..config.ldap import DEFAULT_TIMEOUT
-__version__ = '0.7.3'
+__version__ = '0.7.4'
LOG = logging.getLogger(__name__)
_ = XLATOR.gettext
return attribs
# -------------------------------------------------------------------------
- def modify_entry(self, inst, dn, changes):
+ def modify_entry(self, inst, dn, changes, ldap=None):
connect_info = self.cfg.ldap_connection[inst]
- ldap = self.ldap_connection[inst]
+ if not ldap:
+ ldap = self.ldap_connection[inst]
# connect_info = self.cfg.ldap_connection[inst]
if self.verbose > 1:
return True
# -------------------------------------------------------------------------
- def delete_entry(self, inst, dn):
+ def delete_entry(self, inst, dn, ldap=None):
connect_info = self.cfg.ldap_connection[inst]
- ldap = self.ldap_connection[inst]
+ if not ldap:
+ ldap = self.ldap_connection[inst]
msg = _("Deleting LDAP entry {dn!r} on {uri} ...").format(
uri=connect_info.url, dn=dn)