| Server IP : 198.244.165.102 / Your IP : 216.73.216.218 [ Web Server : nginx/1.24.0 System : Linux modovh-ub-01 6.8.0-138-generic #138-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 31 22:41:49 UTC 2026 x86_64 User : colleary ( 1011) PHP Version : 8.3.23 Disable Function : NONE Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/twisted/plugins/__pycache__/ |
Upload File : |
�
oj � � � d Z ddlZddlmZ ddlmZ ddlmZ ddlm Z m
Z
ddlmZ dZ
d Z eeej � G d
� d� � Z e� Zy)z;
Cred plugin for a file of the format 'username:password'.
� N)�implementer)�plugin)�FilePasswordDB)�IUsernameHashedPassword�IUsernamePassword)�ICheckerFactoryz�
This checker expects to receive the location of a file that
conforms to the FilePasswordDB format. Each line in the file
should be of the format 'username:password', in plain text.
zWarning: not a valid filec �B � e Zd ZdZdZeZdZee fZ
ej Z
d� Zy)�FileCheckerFactoryz7
A factory for instances of L{FilePasswordDB}.
�filez,Location of a FilePasswordDB-formatted file.c �� � ddl m} |j � st d| j z � � ||� j � s%| j j t � d|� d�� t |� S )z�
This checker factory expects to get the location of a file.
The file should conform to the format required by
L{FilePasswordDB} (using defaults for all
initialization parameters).
r )�FilePathz%r requires a filenamez: �
)
�twisted.python.filepathr
�strip�
ValueError�authType�isfile�errorOutput�write�invalidFileWarningr )�self� argstringr
s �;/usr/lib/python3/dist-packages/twisted/plugins/cred_file.py�generateCheckerz"FileCheckerFactory.generateChecker+ se � � 5���� ��5��
�
�E�F�F��)�$�+�+�-����"�"�&8�%9��I�;�b�#I�J��i�(�(� N)�__name__�
__module__�__qualname__�__doc__r �fileCheckerFactoryHelp�authHelp�argStringFormatr r �credentialInterfaces�sys�stderrr r � r r r
r
s2 � �� �H�%�H�D�O�-�/F�G���*�*�K�
)r r
)r r$ �zope.interfacer �twistedr �twisted.cred.checkersr �twisted.cred.credentialsr r �twisted.cred.strcredr r r �IPluginr
�theFileCheckerFactoryr&