ChocolateLoverRaj / pam-any

A PAM module that runs multiple other PAM modules in parallel, succeeding as long as one of them succeeds.
Apache License 2.0
8 stars 0 forks source link

Add option for either OR/AND #4

Closed c4tz closed 5 months ago

c4tz commented 5 months ago

Thank you for developing this module.

I think the possibility to decide whether all or just one the modules called by pam_any have to succeed would be pretty nice.

Example 1: I use both howdy and a bluetooth module and only want PAM to accept me if my face gets recognized AND my smartphone is reachable via BT.

Example 2: If I used howdy and a fingerpint reader, I would probably want to only do one of both at a time, so I would need an OR check. (This is already implemented)