Skip to content
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

Password with unsafe characters? #37

Open
zhangxt-ihep opened this issue Oct 9, 2024 · 0 comments
Open

Password with unsafe characters? #37

zhangxt-ihep opened this issue Oct 9, 2024 · 0 comments

Comments

@zhangxt-ihep
Copy link

Hello,

def from_url(url_str):
res = KerberosClientFactory()
url = urlparse(url_str)
res.dc_ip = url.hostname
schemes = url.scheme.upper().split('+')

When using urllib.parse to get username and password, sometimes the password would contain unsafe characters like /, if it has / in password, urlparse will fail to parse username and password. For example, if url = 'kerberos+pw://domain\\user:Secret/[email protected]', the urlparse(url).username and urlparse(url).password will be empty.

Is this possible to be solved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant