-
Notifications
You must be signed in to change notification settings - Fork 53
Open
Description
Hello,
minikerberos/minikerberos/common/factory.py
Lines 175 to 180 in d2cd8ea
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
Labels
No labels