私の推測では、あなたが解決しようとしている本当の問題は、Internet Explorer の壊れやすさです。他のすべてのブラウザーでは、次のように Apache 構成でエラーリダイレクトを設定するだけです。
<Location /login-spnego>
AuthType Kerberos
require valid-user
KrbMethodNegotiate on
KrbMethodK5Passwd off
Krb5Keytab /etc/httpd/conf/keytab
ErrorDocument 401 /login-simple
</Location>
ただし、問題のサイトへの kerberos 認証を許可するように構成されておらず、401 ドキュメントを表示しない場合、IE は死のスパイラルに陥ります。私が見つけたこの問題の唯一の回避策は、に基づく mod_rewrite ルールを使用することHTTP_USER_AGENT
です。
# IE fails hard if the user does not have a tgt for SPNEGO
# and either attempts NTLM or fails altogether depending on
# exact version. Redirect all IE login attempts to
# form rather than attempt pass-thru SPNEGO login.
RewriteCond %{HTTP_USER_AGENT} ^Mozilla.*MSIE
RewriteRule ^/login-spnego/ /login-simple/ [PT]
これは実際にはあなたの質問に対応していませんが、私が知る限り、mod_auth_kerb のコードを書き直さない限り、あなたが望むことを行う方法はありません。