Closed r3pek closed 6 years ago
After looking more into this, I can't find a library which is any good or still actively maintained to integrate to PAM.
I'm thinking calling a command with username/password as args/env might be best at this point, which in turn could integrate with PAM. @r3pek what do you think?
@maxidor should be doable and looks like a simple solution
@r3pek I've create #58 to hold the generic concept. Some idea on what the output of the command should look like would be idea, knowing that we would want the same info as in the REST provider. The real question is: JSON seems highly unlikely, so what could we use?
I think that's complicating it too much (the command line part). Just make it return 0/1 in case of success/fail and adjust the java part from that. Also, try not to pass the user/password as parameters as that way something monitoring the processes can see them, pass them as env vars to the program.
Using #58 to track progress, marking this as duplicate for the sake of clarity.
@r3pek See v1.2.0-beta.3
Just as a feature request.