in reply to Using htaccess & htpasswd for password protection
You might have more luck with Apache::Htpasswd and Apache::Htgroup, written by our own KM. cpan is, as ever, your friend.