Ticket #1471 (new patch)

Opened 2 years ago

Add PAM authentification to Deluged

Reported by: v-for-vandal Owned by:
Priority: minor Milestone: Future
Component: core Version: 1.3.0_dev
Keywords: auth Cc:

Description

This patch is similar to the  659. It adds authentication via PAM as option. Idea is: On the beginig, AuthManager? determine the available to the daemon auth methods( i.e. check that there is PAM Python module ) and create a list of the available methods. Then it read the list of the desired methods from the config variable "auth_methods" ( defaulted to 'file' ) and remove from this list unavailable methods. When auth request is recived, AuthManager? call necessary functions in specified order. If any of them success, then authentication is successfull, otherwise a BadLoginError? is raised.

Flaws: Now there is no way to specify what exactly was wrong in authentication for each function.

Attachments

pam_auth.patch (3.6 KB) - added by v-for-vandal 2 years ago.
Patch that implement changes

Change History

Changed 2 years ago by v-for-vandal

Patch that implement changes

Note: See TracTickets for help on using tickets.