MCPcopy Create free account
hub / github.com/secdev/scapy / __init__

Method __init__

scapy/modules/ldaphero.py:141–177  ·  view source on GitHub ↗
(
        self,
        ssp: SSP = None,
        mech: LDAP_BIND_MECHS = None,
        simple_username: str = None,
        simple_password: str = None,
        encrypt: bool = False,
        host: str = None,
        port: int = None,
        ssl: bool = False,
    )

Source from the content-addressed store, hash-verified

139 """
140
141 def __init__(
142 self,
143 ssp: SSP = None,
144 mech: LDAP_BIND_MECHS = None,
145 simple_username: str = None,
146 simple_password: str = None,
147 encrypt: bool = False,
148 host: str = None,
149 port: int = None,
150 ssl: bool = False,
151 ):
152 self.client = LDAP_Client()
153 self.ssp = ssp
154 self.mech = mech
155 self.simple_username = simple_username
156 self.simple_password = simple_password
157 self.encrypt = encrypt
158 # Session parameters
159 self.connected = False
160 self.bound = False
161 self.host = host
162 self.port = port
163 self.ssl = ssl
164 self.dns_domain_name = ""
165 self.rootDSE = {}
166 self.sids = dict(WELL_KNOWN_SIDS)
167 self.sidscombo = {}
168 self.guids = {}
169 self.guidscombo = {"None": None}
170 self.guidscomboobject = {"None": None}
171 self.loadedSchemaIDGuids = False
172 self.crop_output = None
173 self.currently_editing = None
174 # UI cache
175 self.lastSearchString = ""
176 # Launch
177 self.main()
178
179 def connect(self):
180 """

Callers 1

__init__Method · 0.45

Calls 2

mainMethod · 0.95
LDAP_ClientClass · 0.90

Tested by

no test coverage detected