Skip to content

Monkeypatches #2003

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Monkeypatches #2003

wants to merge 1 commit into from

Conversation

gabrielg5
Copy link
Collaborator

This PR added a couple function modifications for specific uses cases or issues. Mainly 2.

monkeypatch_ssl_create_default_context

Discussed in #1988
This function patches the create_default_context function from ssl allowing connection to an insecurely configured server

context.minimum_version = ssl.TLSVersion.MINIMUM_SUPPORTED
context.set_ciphers("ALL:@SECLEVEL=0")
context.verify_mode = ssl.CERT_NONE

monkeypatch_readline_backend

Discussed in #1907
This function patches readline adding a missing attribute that makes it fail in specific scenarios

readline.backend = "readline"

At the same time, addcomputer example has been modified to leverage utils.init_ldap_session

…specific usecases/issues: monkeypatch_ssl_create_default_context and monkeypatch_readline_backend
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants