MCPcopy Index your code
hub / github.com/XiaoliChan/LDAPShell / ldap_sessions

Method ldap_sessions

ldapshell.py:53–60  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

51 # For ldap3 with tls mode(only for ldap3).
52 # Picked function from rbcd.py
53 def ldap_sessions(self):
54 if self.ldaps_flag == True:
55 try:
56 return self.ldap_connection(tls_version=ssl.PROTOCOL_TLSv1_2)
57 except ldap3.core.exceptions.LDAPSocketOpenError:
58 return self.ldap_connection(tls_version=ssl.PROTOCOL_TLSv1)
59 else:
60 return self.ldap_connection(tls_version=None)
61
62 def start_LDAPShell(self, ldap_server, ldap_session):
63 domainDumpConfig = ldapdomaindump.domainDumpConfig()

Callers 1

ldapshell.pyFile · 0.80

Calls 1

ldap_connectionMethod · 0.95

Tested by

no test coverage detected