Shams --

...and then Shams said...
% 
...
% I'm interested in your solution David, what is the format of the external
% auth script that you use.. is there some kind of return you have to give
% .htaccess ?

Yep.  It's just a simple perl script; it's attached for reference.


% 
% Also, is there no way I can allow a user to login using a PHP login script,
% and then pass the "username" and "password" over to .htaccess to verify ?

Dunno about that one, but since you can tell .htaccess to run your php
script to verify you should get the same results...


% 
% Thanks for the help,

Sure thing!


% 
% Shams


HTH & HAND

:-D
-- 
David T-G                      * There is too much animal courage in 
(play) [EMAIL PROTECTED] * society and not sufficient moral courage.
(work) [EMAIL PROTECTED]  -- Mary Baker Eddy, "Science and Health"
http://justpickone.org/davidtg/      Shpx gur Pbzzhavpngvbaf Qrprapl Npg!

#!/usr/bin/perl 

$user = <>;
chomp($user);
$pass = <>;
chomp($pass);

exit(2) if($user =~ /^root$/);
exit(3) if($user =~ /[^a-zA-Z0-9_@.-]/);

open(CHKPW,"| /home/vpopmail/bin/vchkpw /bin/true 3<&0 >&2");
print CHKPW $user,"\0";
print CHKPW $pass,"\0";
print CHKPW time(),"\0";
if(not close(CHKPW)) {
        exit(4);
}

Attachment: msg96801/pgp00000.pgp
Description: PGP signature

Reply via email to