I've written a ldap auth-authz module in mod_perl but when I give in
wrong username/pass I need to close my browser in order to get the login
screen again. When I try to refresh without closing I'm getting the
following message wich is obvious

Authorization Required

This server could not verify that you are authorized to access the
document requested. Either you supplied the wrong credentials (e.g., bad
password), or your browser doesn't understand how to supply the
credentials required.