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

Method __init__

ldapsearch-test.py:13–31  ·  view source on GitHub ↗
(self, domain, baseDN, username, password, address, options)

Source from the content-addressed store, hash-verified

11
12class ldap_Shell:
13 def __init__(self, domain, baseDN, username, password, address, options):
14 self.domain = domain
15 self.baseDN = baseDN
16 self.username = username
17 self.password = password
18 self.lmhash = ''
19 self.nthash = ''
20 self.address = address
21 self.ldaps_flag = ''
22 self.gc_flag = ''
23
24 if options.ldaps == True:
25 self.ldaps_flag = True
26
27 if options.gc == True:
28 self.gc_flag = True
29
30 if options.hashes is not None:
31 self.lmhash, self.nthash = options.hashes.split(':')
32
33 def ldap_connect(self):
34 if self.ldaps_flag is True:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected