Hi,<br>I have a little strange problem with pam_script (libpam_script-0.1.11) and pam (pam-0.75-72) on RHEL3 Update 9<br><br>auth required pam_listfile.so bla bla<br>auth optional pam_script.so runas=root<br clear="all">auth sufficient pam_mysql bla bla.<br>
<br>without pam_script.so, everything works perfectly.<br><br>with pam_script installed, it works JUST if the script returns a non-zero value.<br><br>(my script is a simple:<br>#/usr/bin/perl<br>echo(0);  (or echo(1) whether I want it to fail or not)<br>
)<br><br>according to some further tests and to the developer, pam_script correctly returns PAM_SUCCESS (which is 0 according to the debug) to the pam system, but the authentication fails anyway (even if pam_script is optional or required and is not the last one in the stack).<br>
<br>In order to have it working I had to return a non zero result so to force the pam_script to return an error. This way my service (vsftpd) manages to login properly (the "optional" keywork kicks in probably).<br>
<br>I'm not the best one at explaining problems. I hope out there there is somebody that can give me an hint on this problem.<br><br>Have you come across something like this before? Does it happens because pam is too old on my ssystem?<br>
<br>Thanks<br>Alessandro<br><br>-- <br>Alessandro De Maria<br><a href="mailto:alessandro.demaria@gmail.com">alessandro.demaria@gmail.com</a><br>Life is too important to be taken seriously. Oscar Wilde<br>