class documentation

class twisted.conch.checkers.UNIXPasswordDatabase: (source)

Implements interfaces: twisted.cred.checkers.ICredentialsChecker

View In Hierarchy

A checker which validates users out of the UNIX password databases, or databases of a compatible format.

Class Variable credentialInterfaces A list of sub-interfaces of ICredentials which specifies which I may check.
Method __init__ Undocumented
Method requestAvatarId Validate credentials and produce an avatar ID.
Instance Variable _getByNameFunctions a list of functions which are called in order to valid a user. The default value is such that the /etc/passwd database will be tried first, followed by the /etc/shadow database.
_getByNameFunctions = (source)
a list of functions which are called in order to valid a user. The default value is such that the /etc/passwd database will be tried first, followed by the /etc/shadow database.
credentialInterfaces = (source)

A list of sub-interfaces of ICredentials which specifies which I may check.

def __init__(self, getByNameFunctions=None): (source)

Undocumented

def requestAvatarId(self, credentials): (source)

Validate credentials and produce an avatar ID.

Parameterscredentialssomething which implements one of the interfaces in credentialInterfaces.
Returnsa Deferred which will fire with a bytes that identifies an avatar, an empty tuple to specify an authenticated anonymous user (provided as twisted.cred.checkers.ANONYMOUS) or fail with UnauthorizedLogin. Alternatively, return the result itself.
See Alsotwisted.cred.credentials
API Documentation for Twisted, generated by pydoctor 20.12.1 at 2021-02-28 19:53:36.