The following article provides most of the instructions on how to setup authnz_external and pwauth on Ubuntu Hardy.

http://www.pyxzl.net/store/authnz.php