Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add API to allow writing PAM modules #4

Open
Kilobyte22 opened this issue May 11, 2016 · 5 comments
Open

Add API to allow writing PAM modules #4

Kilobyte22 opened this issue May 11, 2016 · 5 comments

Comments

@Kilobyte22
Copy link

Having the ability to authenticate against PAM is one thing. However you should also be able to implement your own pam modules using this API. Would be nice to have support for that.

@1wilkens
Copy link
Owner

Yeah I started with the client API because that was bit that I needed but I definitely plan to add support for modules.
One Problem is I don't really know the APIs and data flows that well so I am not quite sure how to best design a ideomatic Rust API on top of them yet. It is on my backlog for sure.

@nlgranger
Copy link

Hi just passing by and saw this issue. Maybe you can merge effort with @tozny for this (https://github.com/tozny/rust-pam)?

@carnott-snap
Copy link

Other options for support include anonwell/pam-rs and rcatolino/pam_sm_rust.

@1wilkens
Copy link
Owner

Sorry for not responding earlier. I took a look at tozny/pam but figured it was unmaintained at the time. The other two options look promising and go into a direction I had also considered (using a macro to export module functions).

I want to add at least some basic support before 1.0 so this is definitely a priority. Once I have time, I'll contact the authors and see if we can work on adding module support to this library.

@carnott-snap
Copy link

carnott-snap commented Feb 19, 2020

Of the two, I have decided to integrate with rcatolino/pam_sm_rust, since it is on crates.io and has more features. Let me know if there is any help I can be integrating.

Edit: After more work with both, I would request a more comfortised final api; both feel like transliterations of the C ABI, and it would be nice to have something more ergonomic. Happy to assist therein.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants