-
Notifications
You must be signed in to change notification settings - Fork 5
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
Cannot get example to run #2
Comments
I updated the repo (and README). I discovered after forcibly calling a method |
Realistically any module must call into pam to get any details it needs from the request as args are from pam config. Feel free to close, though it may be handy to fix example so it works :) |
I've added a sub-crate containing the example code (without adding any callback). When I build it I get the following :
which seems about right. I haven't actually tested it to authenticate though. |
Alrighty. |
I wasn't aware of the cdylib crate type, and technicaly you were right to use it as it's intended for libraries linking against other languages, which will likely be the case for pam service modules. The cdylib type seems to be an optimization where only symbols declared as Oh well, as far as I underestand (from the relevant pr) a dylib should work just as well as a cdylib for all purposes but will simply be much bigger. |
https://github.com/zacheryph/pamsm-test
I am new to rust and its possible I am missing something, though I know this hasn't been touched in a while and may be differences to rust versions. The readme explains whats going on. none of the
pam_sm_*
functions are making it to the final cdylib.Thank You for any help 😄
The text was updated successfully, but these errors were encountered: