Esempio n. 1
0
 def _authenticate(self):
     keywords = self.keywords()
     credentials = keywords["credentials"]
     name, passwd = _base64_decode(credentials).split(":", 1)
     assert name == self.user.name(), "Internal in consistancy, " "name != self.user.name()"
     entry = self.user.shadow_entry()
     if not entry.password_matches_crypt(passwd):
         raise EAuthenticationFailed()
     self.__credentials = credentials
Esempio n. 2
0
 def _authenticate(self):
     keywords = self.keywords()
     credentials = keywords['credentials']
     name, passwd = _base64_decode(credentials).split(':', 1)
     assert name == self.user.name(), ("Internal in consistancy, "
                                       "name != self.user.name()")
     entry = self.user.shadow_entry()
     if not entry.password_matches_crypt(passwd):
         raise EAuthenticationFailed()
     self.__credentials = credentials
Esempio n. 3
0
 def name(klass, **keywords):
     credentials = keywords['credentials']
     name, passwd = _base64_decode(credentials).split(':', 1)
     return name
Esempio n. 4
0
 def name(klass, **keywords):
     credentials = keywords["credentials"]
     name, passwd = _base64_decode(credentials).split(":", 1)
     return name