1<?xml version="1.0" encoding="UTF-8"?> 2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 3<html xmlns="http://www.w3.org/1999/xhtml" lang="ja" xml:lang="ja"><head><!-- 4 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 5 This file is generated from xml source: DO NOT EDIT 6 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 7 --> 8<title>mod_auth_basic - Apache HTTP サーバ</title> 9<link href="/style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" /> 10<link href="/style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" /> 11<link href="/style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /><link rel="stylesheet" type="text/css" href="/style/css/prettify.css" /> 12<script src="/style/scripts/prettify.js" type="text/javascript"> 13</script> 14 15<link href="/images/favicon.ico" rel="shortcut icon" /></head> 16<body> 17<div id="page-header"> 18<p class="menu"><a href="/mod/">モジュール</a> | <a href="/mod/directives.html">ディレクティブ</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="/glossary.html">用語</a> | <a href="/sitemap.html">サイトマップ</a></p> 19<p class="apache">Apache HTTP サーバ バージョン 2.2</p> 20<img alt="" src="/images/feather.gif" /></div> 21<div class="up"><a href="./"><img title="<-" alt="<-" src="/images/left.gif" /></a></div> 22<div id="path"> 23<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP サーバ</a> > <a href="http://httpd.apache.org/docs/">ドキュメンテーション</a> > <a href="../">バージョン 2.2</a> > <a href="./">モジュール</a></div> 24<div id="page-content"> 25<div id="preamble"><h1>Apache モジュール mod_auth_basic</h1> 26<div class="toplang"> 27<p><span>翻訳済み言語: </span><a href="/en/mod/mod_auth_basic.html" hreflang="en" rel="alternate" title="English"> en </a> | 28<a href="/fr/mod/mod_auth_basic.html" hreflang="fr" rel="alternate" title="Français"> fr </a> | 29<a href="/ja/mod/mod_auth_basic.html" title="Japanese"> ja </a> | 30<a href="/ko/mod/mod_auth_basic.html" hreflang="ko" rel="alternate" title="Korean"> ko </a></p> 31</div> 32<div class="outofdate">この日本語訳はすでに古くなっている 33 可能性があります。 34 最近更新された内容を見るには英語版をご覧下さい。 35 </div> 36<table class="module"><tr><th><a href="module-dict.html#Description">説明:</a></th><td>基本認証</td></tr> 37<tr><th><a href="module-dict.html#Status">ステータス:</a></th><td>Base</td></tr> 38<tr><th><a href="module-dict.html#ModuleIdentifier">モジュール識別子:</a></th><td>auth_basic_module</td></tr> 39<tr><th><a href="module-dict.html#SourceFile">ソースファイル:</a></th><td>mod_auth_basic.c</td></tr> 40<tr><th><a href="module-dict.html#Compatibility">互換性:</a></th><td>Apache 2.1 以降</td></tr></table> 41<h3>概要</h3> 42 43 <p>与えられたプロバイダ (訳注: 認証での照会を行う問い合わせ先) 44 でユーザを検索し、HTTP 基本認証でアクセス制限できるようになります。 45 HTTP ダイジェスト認証については <code class="module"><a href="/mod/mod_auth_digest.html">mod_auth_digest</a></code> 46 で提供されます。</p> 47</div> 48<div id="quickview"><h3 class="directives">ディレクティブ</h3> 49<ul id="toc"> 50<li><img alt="" src="/images/down.gif" /> <a href="#authbasicauthoritative">AuthBasicAuthoritative</a></li> 51<li><img alt="" src="/images/down.gif" /> <a href="#authbasicprovider">AuthBasicProvider</a></li> 52</ul> 53<h3>参照</h3> 54<ul class="seealso"> 55<li><code class="directive"><a href="/mod/core.html#authname">AuthName</a></code></li> 56<li><code class="directive"><a href="/mod/core.html#authtype">AuthType</a></code></li> 57</ul><ul class="seealso"><li><a href="#comments_section">コメント</a></li></ul></div> 58 59<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div> 60<div class="directive-section"><h2><a name="AuthBasicAuthoritative" id="AuthBasicAuthoritative">AuthBasicAuthoritative</a> <a name="authbasicauthoritative" id="authbasicauthoritative">ディレクティブ</a></h2> 61<table class="directive"> 62<tr><th><a href="directive-dict.html#Description">説明:</a></th><td>認証と承認を、より低いレベルのモジュールに移行させるかを 63設定します。</td></tr> 64<tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>AuthBasicAuthoritative On|Off</code></td></tr> 65<tr><th><a href="directive-dict.html#Default">デフォルト:</a></th><td><code>AuthBasicAuthoritative On</code></td></tr> 66<tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>ディレクトリ, .htaccess</td></tr> 67<tr><th><a href="directive-dict.html#Override">上書き:</a></th><td>AuthConfig</td></tr> 68<tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>Base</td></tr> 69<tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td>mod_auth_basic</td></tr> 70</table> 71 <p><code class="directive">AuthBasicAuthoritative</code> 72 ディレクティブで明示的に <code>Off</code>に設定すると、 73 与えられた認証ユーザ ID に対して<strong>ユーザ ID がない</strong> 74 または<strong>ルールがない</strong>場合に、 75 認証と承認の両方のプロセスが、 76 より低いレベルのモジュール (<code>modules.c</code> ファイルで定義) に移行するようにできます。 77 ユーザ ID がある、かつまたは、ルールが指定されている場合は、 78 通常のパスワードとアクセスチェックが適用されて、 79 認証に失敗すると "Authentication Required" 応答が返されます。</p> 80 81 <p>ですから、二つ以上のモジュールのデータベースで同一の 82 ユーザ ID が現われたり、 83 または、正しい <code class="directive"><a href="/mod/core.html#require">Require</a></code> 84 ディレクティブが二つ以上のモジュールで現われたりした場合は、 85 一つ目のモジュールが認定を行って、<code class="directive">AuthAuthoritative</code> 86 設定に関わらず、アクセスは移行しません。</p> 87 88 <p>デフォルトでは、制御は移行しません。そして、未知のユーザ ID や 89 ルールがあっても "Authentication Required" 応答が返されます。 90 ですから、このディレクティブを設定しないことでシステムの安全を維持できて、また、 91 NCSA 準拠の挙動を強制できます。</p> 92 93</div> 94<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div> 95<div class="directive-section"><h2><a name="AuthBasicProvider" id="AuthBasicProvider">AuthBasicProvider</a> <a name="authbasicprovider" id="authbasicprovider">ディレクティブ</a></h2> 96<table class="directive"> 97<tr><th><a href="directive-dict.html#Description">説明:</a></th><td>この位置に対する認証プロバイダを設定します。</td></tr> 98<tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>AuthBasicProvider On|Off|<var>provider-name</var> 99[<var>provider-name</var>] ...</code></td></tr> 100<tr><th><a href="directive-dict.html#Default">デフォルト:</a></th><td><code>AuthBasicProvider On</code></td></tr> 101<tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>ディレクトリ, .htaccess</td></tr> 102<tr><th><a href="directive-dict.html#Override">上書き:</a></th><td>AuthConfig</td></tr> 103<tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>Base</td></tr> 104<tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td>mod_auth_basic</td></tr> 105</table> 106 <p><code class="directive">AuthBasicProvider</code> ディレクティブで、 107 この位置に対するユーザ認証に用いられる認証プロバイダを設定します。 108 <code>On</code> に設定するとデフォルトの認証プロバイダ 109 (<code>file</code>) が使用されます。<code>file</code> 110 プロバイダは <code class="module"><a href="/mod/mod_authn_file.html">mod_authn_file</a></code> 111 モジュールで実装されていますので、 112 このモジュールがサーバに入っていることを確認してください。</p> 113 114 <div class="example"><h3>Example</h3><p><code> 115 <Location /secure><br /> 116 <span class="indent"> 117 AuthBasicProvider dbm<br /> 118 AuthDBMType SDBM<br /> 119 AuthDBMUserFile /www/etc/dbmpasswd<br /> 120 Require valid-user<br /> 121 </span> 122 </Location> 123 </code></p></div> 124 125 <p>認証プロバイダについては 126 <code class="module"><a href="/mod/mod_authn_dbm.html">mod_authn_dbm</a></code> と <code class="module"><a href="/mod/mod_authn_file.html">mod_authn_file</a></code> 127 をご覧下さい。</p> 128 129 <p><code>Off</code> はプロバイダリストをクリアして、デフォルトの 130 状態に戻します。</p> 131 132</div> 133</div> 134<div class="bottomlang"> 135<p><span>翻訳済み言語: </span><a href="/en/mod/mod_auth_basic.html" hreflang="en" rel="alternate" title="English"> en </a> | 136<a href="/fr/mod/mod_auth_basic.html" hreflang="fr" rel="alternate" title="Français"> fr </a> | 137<a href="/ja/mod/mod_auth_basic.html" title="Japanese"> ja </a> | 138<a href="/ko/mod/mod_auth_basic.html" hreflang="ko" rel="alternate" title="Korean"> ko </a></p> 139</div><div class="top"><a href="#page-header"><img src="/images/up.gif" alt="top" /></a></div><div class="section"><h2><a id="comments_section" name="comments_section">コメント</a></h2><div class="warning"><strong>Notice:</strong><br />This is not a Q&A section. Comments placed here should be pointed towards suggestions on improving the documentation or server, and may be removed again by our moderators if they are either implemented or considered invalid/off-topic. Questions on how to manage the Apache HTTP Server should be directed at either our IRC channel, #httpd, on Freenode, or sent to our <a href="http://httpd.apache.org/lists.html">mailing lists</a>.</div> 140<script type="text/javascript"><!--//--><![CDATA[//><!-- 141var comments_shortname = 'httpd'; 142var comments_identifier = 'http://httpd.apache.org/docs/2.2/mod/mod_auth_basic.html'; 143(function(w, d) { 144 if (w.location.hostname.toLowerCase() == "httpd.apache.org") { 145 d.write('<div id="comments_thread"><\/div>'); 146 var s = d.createElement('script'); 147 s.type = 'text/javascript'; 148 s.async = true; 149 s.src = 'https://comments.apache.org/show_comments.lua?site=' + comments_shortname + '&page=' + comments_identifier; 150 (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s); 151 } 152 else { 153 d.write('<div id="comments_thread">Comments are disabled for this page at the moment.<\/div>'); 154 } 155})(window, document); 156//--><!]]></script></div><div id="footer"> 157<p class="apache">Copyright 2013 The Apache Software Foundation.<br />この文書は <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a> のライセンスで提供されています。.</p> 158<p class="menu"><a href="/mod/">モジュール</a> | <a href="/mod/directives.html">ディレクティブ</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="/glossary.html">用語</a> | <a href="/sitemap.html">サイトマップ</a></p></div><script type="text/javascript"><!--//--><![CDATA[//><!-- 159if (typeof(prettyPrint) !== 'undefined') { 160 prettyPrint(); 161} 162//--><!]]></script> 163</body></html>