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

PAM authentication support #26

Closed
konradgraefe opened this issue May 4, 2021 · 10 comments
Closed

PAM authentication support #26

konradgraefe opened this issue May 4, 2021 · 10 comments

Comments

@konradgraefe
Copy link

konradgraefe commented May 4, 2021

I am planning to implement PAM authentication support on behalf of @AEberleMW. Our goal is to bring that into the mainline gensio project. To make that process as simple as possible I'd like to discuss a few details beforehand:

  • What is your preferred coding style? In the certauth code I saw a mixture of tabs and spaces which seems a bit uncommon to me.
  • I would name it pamauth.
  • I am still at the start of my research but I think gensios are strictly non-blocking while PAM authentication is designed to block until a response is present. Therefore we may need to spawn a thread handling the PAM authentication.
  • certauth runs its own custom protocol on top of the underlying gensio, so we are free to define our own protocol in pamauth, correct? I'd probably try to serialize and transfer PAM structures.
  • I am not yet sure why certauth is split into lib/gensio_certauth.c and lib/gensio_filter_certauth.c but I will probably get behind that.

Please if you have any thoughts or hints on that I would like to discuss them.

cc @THerbrecher

@cminyard
Copy link
Owner

cminyard commented May 4, 2021 via email

@cminyard
Copy link
Owner

Any news on this? If you are still working on it that's fine, but if not, we should probably close this.

@konradgraefe
Copy link
Author

I am still working on this. I got one month off from work, hence the delay.

My current state is at https://github.com/konradgraefe/gensio if you're interested. It's in a very rough state, though. Currently it is independent from certauth but can be stacked with it. The biggest TODO before cleaning everything up is finding a way for hidden password entry.

@cminyard
Copy link
Owner

cminyard commented Jul 16, 2021 via email

@konradgraefe
Copy link
Author

The reason why I'd like to keep it separated is that PAM supports more than authenticating just with user name and password (2FA, etc.) through plugins and I'd like to support that, if possible.

@cminyard
Copy link
Owner

cminyard commented Jul 19, 2021 via email

@cminyard
Copy link
Owner

Any news on this? It's been a while.

@AEberleMW
Copy link
Contributor

Hi @cminyard,

we had many resource problems in the last months so there was no time to schedule this issue. But we are definitely planning to implement the task within this year.

So would it be OK for you to keep this issue open? I will get in touch with you when we resume the work.

Best,
Marco

@cminyard
Copy link
Owner

cminyard commented Jan 25, 2022 via email

@konradgraefe
Copy link
Author

Resolved via cminyard/ser2net#66

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

3 participants