After half an hour of getting "PAM test failed - maybe
/etc/pam.d/webmin does not exist" thrown at me in
miniserv.errors, I dug into the code and found that the
PAM test requirements could never be fulfilled.
Now I haven't used Webmin for more than 5 minutes (it's
a customer request) and I didn't research the Auth::PAM
docs at all, but it seems the bug is due to a simple
missing assignment. The attached patch appears to work.
OS: GNU/Linux (OpenSUSE 10.1), though I doubt that
matters in this case.