Opened 8 years ago

#1471 new patch

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 (1)

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

Download all attachments as: .zip

Change History (1)

Changed 8 years ago by v-for-vandal

Patch that implement changes

Note: See TracTickets for help on using tickets.