Opened 14 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.
Patch that implement changes