Module Expr Str Assign NameStore ListLoad Str ImportFrom alias alias alias alias alias alias alias ImportFrom alias alias alias alias alias ImportFrom alias Assign NameStore Call NameLoad Call NameLoad Str Assign NameStore Call NameLoad Call NameLoad Str Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num ClassDef bases NameLoad body Expr Str Assign NameStore ListLoad TupleLoad Str NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore ListLoad TupleLoad Str NameLoad TupleLoad Str NameLoad FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore ListLoad TupleLoad Str NameLoad TupleLoad Str NameLoad FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list Assign NameStore Call NameLoad NameLoad NameLoad Call NameLoad Call NameLoad NameLoad Call NameLoad Call NameLoad NameLoad NameLoad ClassDef bases NameLoad body Expr Str Assign NameStore ListLoad TupleLoad Str NameLoad TupleLoad Str NameLoad decorator_list Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad NameLoad NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Call NameLoad NameLoad Assign SubscriptStore NameLoad Index Num Call NameLoad NameLoad Call NameLoad NameLoad For NameStore Call NameLoad NameLoad body If CompareEq AttributeLoad AttributeLoad SubscriptLoad NameLoad Index NameLoad attr attr NameLoad body Assign NameStore Call NameLoad Call NameLoad NameLoad Assign AttributeStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr Call NameLoad NameLoad NameLoad Assign AttributeStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr Num Return Num decorator_list NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Num Assign NameStore Call NameLoad NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad If CompareNotEq NameLoad Num body Return NameLoad Assign NameStore Call NameLoad NameLoad Num If BoolOpAnd CompareEq NameLoad Num NameLoad body Assign NameStore Call NameLoad NameLoad Num Expr Call NameLoad NameLoad NameLoad Return CompareEq NameLoad Num decorator_list If CompareEq NameLoad Str body Import alias Print Call NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr
N/A N/A 
PAM module for python

Provides an authenticate function that will allow the caller to authenticate
a user against the Pluggable Authentication Modules (PAM) on the system.

Implemented using ctypes, so no compilation is necessary.
 N/A __all__ N/A authenticate ctypes CDLL POINTER Structure CFUNCTYPE cast pointer sizeof ctypes c_void_p c_uint c_char_p c_char c_int ctypes.util find_library N/A LIBPAM N/A CDLL N/A find_library pam N/A LIBC N/A CDLL N/A find_library c N/A CALLOC N/A LIBC calloc N/A N/A CALLOC restype c_void_p N/A N/A CALLOC argtypes N/A c_uint c_uint N/A STRDUP N/A LIBC strdup N/A N/A STRDUP argstypes N/A c_char_p N/A N/A STRDUP restype N/A POINTER c_char N/A PAM_PROMPT_ECHO_OFF 1 N/A PAM_PROMPT_ECHO_ON 2 N/A PAM_ERROR_MSG 3 N/A PAM_TEXT_INFO 4 PamHandle N/A Structure N/A N/A wrapper class for pam_handle_t N/A _fields_ N/A N/A handle c_void_p __init__ N/A N/A self N/A N/A N/A N/A N/A Structure __init__ self N/A N/A self handle 0 N/A N/A PamMessage N/A Structure N/A N/A wrapper class for pam_message structure N/A _fields_ N/A N/A msg_style c_int N/A msg c_char_p __repr__ N/A N/A self N/A N/A N/A N/A <PamMessage %i '%s'> N/A N/A self msg_style N/A self msg N/A N/A PamResponse N/A Structure N/A N/A wrapper class for pam_response structure N/A _fields_ N/A N/A resp c_char_p N/A resp_retcode c_int __repr__ N/A N/A self N/A N/A N/A N/A <PamResponse %i '%s'> N/A N/A self resp_retcode N/A self resp N/A N/A N/A CONV_FUNC N/A CFUNCTYPE c_int c_int N/A POINTER N/A POINTER PamMessage N/A POINTER N/A POINTER PamResponse c_void_p PamConv N/A Structure N/A N/A wrapper class for pam_conv structure N/A _fields_ N/A N/A conv CONV_FUNC N/A appdata_ptr c_void_p N/A N/A PAM_START N/A LIBPAM pam_start N/A N/A PAM_START restype c_int N/A N/A PAM_START argtypes N/A c_char_p c_char_p N/A POINTER PamConv N/A POINTER PamHandle N/A PAM_AUTHENTICATE N/A LIBPAM pam_authenticate N/A N/A PAM_AUTHENTICATE restype c_int N/A N/A PAM_AUTHENTICATE argtypes N/A PamHandle c_int N/A PAM_ACCT_MGMT N/A LIBPAM pam_acct_mgmt N/A N/A PAM_ACCT_MGMT restype c_int N/A N/A PAM_ACCT_MGMT argtypes N/A PamHandle c_int N/A PAM_END N/A LIBPAM pam_end N/A N/A PAM_END restype c_int N/A N/A PAM_END argtypes N/A PamHandle c_int authenticate N/A N/A username password service enable_acct_mgrt N/A login False N/A N/A Returns True if the given username and password authenticate for the
    given service.  Returns False otherwise

    ``username``: the username to authenticate

    ``password``: the password in plain text

    ``service``: the PAM service to authenticate against.
                 Defaults to 'login'

    ``enable_acct_mgrt``: call pam_acct_mgrt to check authorization, default to False my_conv N/A N/A n_messages messages p_response app_data N/A N/A N/A Simple conversation function that responds to any
        prompt where the echo is off with the supplied password N/A addr N/A CALLOC n_messages N/A sizeof PamResponse N/A N/A p_response N/A 0 N/A cast addr N/A POINTER PamResponse N/A i N/A range n_messages N/A N/A N/A N/A N/A N/A messages N/A i contents msg_style PAM_PROMPT_ECHO_OFF N/A N/A pw_copy N/A STRDUP N/A str password N/A N/A N/A N/A p_response contents N/A i resp N/A cast pw_copy c_char_p N/A N/A N/A N/A p_response contents N/A i resp_retcode 0 N/A 0 N/A CONV_FUNC N/A handle N/A PamHandle N/A conv N/A PamConv my_conv 0 N/A retval N/A PAM_START service username N/A pointer conv N/A pointer handle N/A N/A retval 0 N/A N/A False N/A retval N/A PAM_AUTHENTICATE handle 0 N/A N/A N/A retval 0 enable_acct_mgrt N/A N/A retval N/A PAM_ACCT_MGMT handle 0 N/A N/A PAM_END handle retval N/A N/A retval 0 N/A N/A N/A __name__ __main__ N/A N/A getpass N/A N/A authenticate N/A N/A getpass getuser N/A N/A getpass getpass