MCPcopy Create free account
hub / github.com/XiaoliChan/LDAPShell / __init__

Method __init__

ldapshell.py:16–32  ·  view source on GitHub ↗
(self, domain, baseDN, username, password, address, options)

Source from the content-addressed store, hash-verified

14
15class ldap_Shell:
16 def __init__(self, domain, baseDN, username, password, address, options):
17 self.domain = domain
18 self.baseDN = baseDN
19 self.username = username
20 self.password = password
21 self.lmhash = ''
22 self.nthash = ''
23 self.address = address
24 self.ldaps_flag = ''
25
26 if options.ldaps == True:
27 self.ldaps_flag = True
28
29 if options.hashes is not None:
30 self.lmhash, self.nthash = options.hashes.split(':')
31 if self.lmhash == "":
32 self.lmhash = "aad3b435b51404eeaad3b435b51404ee"
33
34 def ldap_connection(self, tls_version):
35 user_withDomain = '%s\\%s' % (self.domain, self.username)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected