We were unable to get JPam-1.1 to work with RSA Securid PAM Agent v7. I found this was related to the
code that attempts to match msg[replies]->msg to a set of strings in PAM_conv.
Whenever a string matches reply[replies].resp = COPY_STRING(password) is done,
if no string matches then reply[replies].resp is left pointing to garbage. The various
"if" clauses are redundant and irrelevant, reply[replies].resp = COPY_STRING(password)
should always be done.
The "debug" flag, static jboolean debug, isn't hooked upstream to the Java class, this
isn't really useful. I added syslog support to make debugging easier, it is set for LOG_AUTH.
Thanks for writing JPam.
Patches for v7 SecurID + syslog