Skip to content

Password with unsafe characters? #37

@zhangxt-ihep

Description

@zhangxt-ihep

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/Password@127.0.0.1', the urlparse(url).username and urlparse(url).password will be empty.

Is this possible to be solved?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions