You are viewing a single comment's thread from:
RE: Security 101: Account Security - PAM!
Very nice post, thanks for taking the time! I would be grateful if you could give an example of how to use these modules in a concrete way, like e.g. in a python script or a c++ program.
In python you could use something like this:
You'll need the
python-pam
module. I have no Python experience, got the code from Stack Overflow, so it may/may not work.You can also see this code sample in Stack Overflow for using PAM in C++ to get an idea and implement it in your own code.
I plan to make some examples in the series though.
Thank you. I'm looking forward to it.