"""User authentication through PAM.""" from . import User import pam class PamUser(User): """Authenticate user through pam.""" def validate(self, password: str) -> bool: # noqa: 201 ret = pam.authenticate(self._username, password) assert type(ret) == bool return ret