[question] is libPAM library is mandatory
while compiling the libnetconf2 getting below error: CMake Error at /usr/local/share/cmake-3.6/Modules/FindPackageHandleStandardArgs.cmake:148 (message): Could NOT find LibPAM (missing: LIBPAM_LIBRARIES LIBPAM_INCLUDE_DIRS)
We know that the package libPAM is missing in our setup. However just wanted to ask is it compulsory or we can compile libnetconf2 bypassing this package. kindly suggest.
Thanks
It is required currently because otherwise the keyboard-interactive SSH authentication method would not work. Perhaps it can be disabled without the library but we thought this new dependency should not cause any problems.
could you please suggest, how to disable this incase of library and headers are not available. By commenting this package in CMakeLists.txt, gives below error:
netconf/libnetconf2/src/session_server_ssh.c:30:31: fatal error: security/pam_appl.h: No such file or directory #include <security/pam_appl.h>
Like I said, it was a mandatory requirement. But I have changed it and if you use the current devel branch, it should not longer be needed.
Hi @michalvasko ,
I'm also having problems with libpam. It is not available on my system, and I'm currently trying to install it (from https://github.com/linux-pam/linux-pam), but it has issues and I don't succeed currently. I'll try the devel branch as suggested, but can I also suggest/request:
- please list libpam as a dependency in the README for the mainpage
- can you say which particular modules of libpam are required (it seems to be a huge library of packages, and I'm pretty sure not all of them are mandatory - might be able to get a build together that way)
- any chance of not using libpam? I was using an older version of libnetconf2 which didn't use libpam, and only got this error when updating to latest version. What did you use prior to libpam?
Thanks in advance.
- It was the purpose of last changes I made but somehow forgot to actually add it, should now finally be there (
devel). - Sorry, I am not sure, we have just been using the package.
- Yes, in the version in
devel, please use that. It should only be a few weeks until the next release.