# rom ..config.ldap import DEFAULT_PORT_LDAP, DEFAULT_PORT_LDAPS
from ..config.ldap import DEFAULT_TIMEOUT
-__version__ = '0.7.2'
+__version__ = '0.7.3'
LOG = logging.getLogger(__name__)
_ = XLATOR.gettext
ldap_server = self.get_ldap_server_obj(inst)
self.ldap_server[inst] = ldap_server
+ if not connect_info.bind_pw:
+ first_prompt = _("Password of user {usr} on LDAP instance {inst}:").format(
+ usr=self.colored(connect_info.bind_dn, 'CYAN'),
+ inst=self.colored(connect_info.url, 'CYAN')) + ' '
+ connect_info.bind_pw = self.get_password(first_prompt, may_empty=False, repeat=False)
+
ldap_connection = self.connect_to_ldap_server(ldap_server, inst)
self.ldap_connection[inst] = ldap_connection