Skip to content

Add PAM authentication support #20

Closed
@foxcpp

Description

@foxcpp

This will allow to reuse a lot of components developed for PAM.

Notes
  • CGo dependency: libpam
  • libpam does have a callback-based interface, it needs to be used with extreme care to not introduce memory vulnerabilities.
Problems to solve
  • maddy needs to access the shadow database (/etc/shadow) on configurations using the local database. Should we just require maddy to be running as root (or with CAP_DAC_READ_SEARCH) or somehow isolate code working with this file?

Some example code can be found here: https://stackoverflow.com/questions/10910193/how-to-authenticate-username-password-using-pam-w-o-root-privileges
Except probably we want to define our own PAM service instead of using "su".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions