Well, I finally figured out how to make the script correctly 
authenticate users, but it doesn't appear to be returning the correct 
value to xmail.  In my /etc/xmail/userauth/pop3/dchweb.com.tab file I 
call the script.  I know the script runs, because I modified it to echo 
the value pam returns into a file in /tmp.  If I try to log in, the file 
gets created and either 0 or 7 is echoed into it.  Either way, xmail 
says access denied.  I don't know much about perl, and I don't know how 
to control scripts' exit values, so I am not sure if the script is 
actually returning 0 to xmail.  Anyone else use the script yet?  Have 
you gotten it to work?  Please help me out a bit here if you can.
Dustin C. Hatch

Kevin Williams wrote:

>Dustin,
>
>This script is certainly something I slapped together from the 
>Authen::PAM docs. My Perl skills are anything but. ;) The script should 
>return the return code from PAM, but your shell may translate that 
>return code to another number.
>
>I wish I could be more help, but this is one of those times where I got 
>lucky without understanding the code I wrote. I'm sure there are others 
>who could improve the script if they feel like it.
>
>Kevin
>
>P.S. The Authen::PAM docs describe quite a few other functions which 
>would make the script much more robust.
>--
>Get Firefox!
>http://www.spreadfirefox.com/?q=affiliates&id=26755&t=1
>
>Dustin C. Hatch wrote:
>  
>
>>I am trying Kevin Williams's perl srcipt for external user 
>>authentication, and for a test, I have modified it to print the output 
>>number from the pam module, but it prints 7.  According to make test, 7 
>>is authentication failure.  Kevin, what am I doing wrong?  Also, for 
>>anybody, how would I tell xmail to go on to use internal authentication 
>>if this perl script fails?
>>
>>Dustin C. Hatch
>>-
>>To unsubscribe from this list: send the line "unsubscribe xmail" in
>>the body of a message to [EMAIL PROTECTED]
>>For general help: send the line "help" in the body of a message to
>>[EMAIL PROTECTED]
>>
>>    
>>
>-
>To unsubscribe from this list: send the line "unsubscribe xmail" in
>the body of a message to [EMAIL PROTECTED]
>For general help: send the line "help" in the body of a message to
>[EMAIL PROTECTED]
>
>
>  
>


-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]

Reply via email to