• Home
  • Raw
  • Download

Lines Matching refs:passwd

838         self.passwd = {}
840 def add_password(self, realm, uri, user, passwd): argument
844 if realm not in self.passwd:
845 self.passwd[realm] = {}
849 self.passwd[realm][reduced_uri] = (user, passwd)
852 domains = self.passwd.get(realm, {})
915 def add_password(self, realm, uri, user, passwd, is_authenticated=False): argument
919 super().add_password(None, uri, user, passwd)
920 super().add_password(realm, uri, user, passwd)
957 self.passwd = password_mgr
958 self.add_password = self.passwd.add_password
983 user, pw = self.passwd.find_user_password(realm, host)
995 if (not hasattr(self.passwd, 'is_authenticated') or
996 not self.passwd.is_authenticated(req.full_url)):
1000 user, passwd = self.passwd.find_user_password(None, req.full_url)
1001 credentials = '{0}:{1}'.format(user, passwd).encode()
1008 if hasattr(self.passwd, 'is_authenticated'):
1010 self.passwd.update_authenticated(req.full_url, True)
1012 self.passwd.update_authenticated(req.full_url, False)
1061 def __init__(self, passwd=None): argument
1062 if passwd is None:
1063 passwd = HTTPPasswordMgr()
1064 self.passwd = passwd
1065 self.add_password = self.passwd.add_password
1132 user, pw = self.passwd.find_user_password(realm, req.full_url)
1515 user, passwd = splitpasswd(user)
1517 passwd = None
1520 passwd = passwd or ''
1533 fw = self.connect_ftp(user, passwd, host, port, dirs, req.timeout)
1553 def connect_ftp(self, user, passwd, host, port, dirs, timeout): argument
1554 return ftpwrapper(user, passwd, host, port, dirs, timeout,
1573 def connect_ftp(self, user, passwd, host, port, dirs, timeout): argument
1578 self.cache[key] = ftpwrapper(user, passwd, host, port,
2017 if user: user, passwd = splitpasswd(user)
2018 else: passwd = None
2021 passwd = unquote(passwd or '')
2046 ftpwrapper(user, passwd, host, port, dirs)
2240 user, passwd = self.get_user_passwd(proxyhost, realm, i)
2241 if not (user or passwd): return None
2243 quote(passwd, safe=''), proxyhost)
2258 user, passwd = self.get_user_passwd(proxyhost, realm, i)
2259 if not (user or passwd): return None
2261 quote(passwd, safe=''), proxyhost)
2272 user, passwd = self.get_user_passwd(host, realm, i)
2273 if not (user or passwd): return None
2275 quote(passwd, safe=''), host)
2286 user, passwd = self.get_user_passwd(host, realm, i)
2287 if not (user or passwd): return None
2289 quote(passwd, safe=''), host)
2303 user, passwd = self.prompt_user_passwd(host, realm)
2304 if user or passwd: self.auth_cache[key] = (user, passwd)
2305 return user, passwd
2312 passwd = getpass.getpass("Enter password for %s in %s at %s: " %
2314 return user, passwd
2364 def __init__(self, user, passwd, host, port, dirs, timeout=None, argument
2367 self.passwd = passwd
2385 self.ftp.login(self.user, self.passwd)