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

Method do_start_tls

utils/ldap_shell.py:355–363  ·  view source on GitHub ↗
(self, line)

Source from the content-addressed store, hash-verified

353 print('Domain info dumped into lootdir!')
354
355 def do_start_tls(self, line):
356 if not self.client.tls_started and not self.client.server.ssl:
357 print('Sending StartTLS command...')
358 if not self.client.start_tls():
359 raise Exception("StartTLS failed")
360 else:
361 print('StartTLS succeded, you are now using LDAPS!')
362 else:
363 print('It seems you are already connected through a TLS channel.')
364
365 def do_disable_account(self, username):
366 self.toggle_account_enable_disable(username, False)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected