mod_authn_file.html.ja.utf8 revision 888cb40bdeec5abf452bd85d6bf63b26d5913d4c
6ae232055d4d8a97267517c5e50074c2c819941and<?xml version="1.0" encoding="UTF-8"?>
6ae232055d4d8a97267517c5e50074c2c819941and<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
6ae232055d4d8a97267517c5e50074c2c819941and<html xmlns="http://www.w3.org/1999/xhtml" lang="ja" xml:lang="ja"><head><!--
6ae232055d4d8a97267517c5e50074c2c819941and XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
6ae232055d4d8a97267517c5e50074c2c819941and This file is generated from xml source: DO NOT EDIT
6ae232055d4d8a97267517c5e50074c2c819941and XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
6ae232055d4d8a97267517c5e50074c2c819941and -->
6ae232055d4d8a97267517c5e50074c2c819941and<title>mod_authn_file - Apache HTTP サーバ</title>
6ae232055d4d8a97267517c5e50074c2c819941and<link href="/style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" />
6ae232055d4d8a97267517c5e50074c2c819941and<link href="/style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" />
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen<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" />
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen<script src="/style/scripts/prettify.js" type="text/javascript">
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen</script>
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen
6ae232055d4d8a97267517c5e50074c2c819941and<link href="/images/favicon.ico" rel="shortcut icon" /></head>
6ae232055d4d8a97267517c5e50074c2c819941and<body>
6ae232055d4d8a97267517c5e50074c2c819941and<div id="page-header">
d229f940abfb2490dee17979e9a5ff31b7012eb5rbowen<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>
3f08db06526d6901aa08c110b5bc7dde6bc39905nd<p class="apache">Apache HTTP サーバ バージョン 2.5</p>
6ae232055d4d8a97267517c5e50074c2c819941and<img alt="" src="/images/feather.gif" /></div>
6ae232055d4d8a97267517c5e50074c2c819941and<div class="up"><a href="./"><img title="&lt;-" alt="&lt;-" src="/images/left.gif" /></a></div>
6ae232055d4d8a97267517c5e50074c2c819941and<div id="path">
b43f840409794ed298e8634f6284741f193b6c4ftakashi<a href="http://www.apache.org/">Apache</a> &gt; <a href="http://httpd.apache.org/">HTTP サーバ</a> &gt; <a href="http://httpd.apache.org/docs/">ドキュメンテーション</a> &gt; <a href="../">バージョン 2.5</a> &gt; <a href="./">モジュール</a></div>
6ae232055d4d8a97267517c5e50074c2c819941and<div id="page-content">
6ae232055d4d8a97267517c5e50074c2c819941and<div id="preamble"><h1>Apache モジュール mod_authn_file</h1>
6ae232055d4d8a97267517c5e50074c2c819941and<div class="toplang">
b43f840409794ed298e8634f6284741f193b6c4ftakashi<p><span>翻訳済み言語: </span><a href="/en/mod/mod_authn_file.html" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |
11495c9f0bd33e51a25b4d532beadfbcf9b944a3nilgun<a href="/fr/mod/mod_authn_file.html" hreflang="fr" rel="alternate" title="Français">&nbsp;fr&nbsp;</a> |
6ae232055d4d8a97267517c5e50074c2c819941and<a href="/ja/mod/mod_authn_file.html" title="Japanese">&nbsp;ja&nbsp;</a> |
f086b4b402fa9a2fefc7dda85de2a3cc1cd0a654rjung<a href="/ko/mod/mod_authn_file.html" hreflang="ko" rel="alternate" title="Korean">&nbsp;ko&nbsp;</a></p>
6ae232055d4d8a97267517c5e50074c2c819941and</div>
b43f840409794ed298e8634f6284741f193b6c4ftakashi<div class="outofdate">この日本語訳はすでに古くなっている
b43f840409794ed298e8634f6284741f193b6c4ftakashi 可能性があります。
b43f840409794ed298e8634f6284741f193b6c4ftakashi 最近更新された内容を見るには英語版をご覧下さい。
b43f840409794ed298e8634f6284741f193b6c4ftakashi </div>
6ae232055d4d8a97267517c5e50074c2c819941and<table class="module"><tr><th><a href="module-dict.html#Description">説明:</a></th><td>テキストファイルを用いたユーザ認証</td></tr>
6ae232055d4d8a97267517c5e50074c2c819941and<tr><th><a href="module-dict.html#Status">ステータス:</a></th><td>Base</td></tr>
6ae232055d4d8a97267517c5e50074c2c819941and<tr><th><a href="module-dict.html#ModuleIdentifier">モジュール識別子:</a></th><td>authn_file_module</td></tr>
6ae232055d4d8a97267517c5e50074c2c819941and<tr><th><a href="module-dict.html#SourceFile">ソースファイル:</a></th><td>mod_authn_file.c</td></tr>
6ae232055d4d8a97267517c5e50074c2c819941and<tr><th><a href="module-dict.html#Compatibility">互換性:</a></th><td>Apache 2.1 以降</td></tr></table>
6ae232055d4d8a97267517c5e50074c2c819941and<h3>概要</h3>
6ae232055d4d8a97267517c5e50074c2c819941and
6ae232055d4d8a97267517c5e50074c2c819941and <p>本モジュールは <code class="module"><a href="/mod/mod_auth_digest.html">mod_auth_digest</a></code> や
6ae232055d4d8a97267517c5e50074c2c819941and <code class="module"><a href="/mod/mod_auth_basic.html">mod_auth_basic</a></code> といった認証フロントエンドに対して、
6ae232055d4d8a97267517c5e50074c2c819941and プレインテキストのパスワードファイル内からユーザを検索することで、
6ae232055d4d8a97267517c5e50074c2c819941and ユーザ認証機能を提供します。似たような機能は <code class="module"><a href="/mod/mod_authn_dbm.html">mod_authn_dbm</a></code>
6ae232055d4d8a97267517c5e50074c2c819941and でも提供されています。</p>
6ae232055d4d8a97267517c5e50074c2c819941and
6ae232055d4d8a97267517c5e50074c2c819941and <p><code class="module"><a href="/mod/mod_auth_basic.html">mod_auth_basic</a></code> や <code class="module"><a href="/mod/mod_auth_digest.html">mod_auth_digest</a></code>
6ae232055d4d8a97267517c5e50074c2c819941and を使用する際には、
6ae232055d4d8a97267517c5e50074c2c819941and <code class="directive"><a href="/mod/mod_auth_basic.html#authbasicprovider">AuthBasicProvider</a></code> や
6ae232055d4d8a97267517c5e50074c2c819941and <code class="directive"><a href="/mod/mod_auth_digest.html#authdigestprivider">AuthDigestPrivider</a></code>
6ae232055d4d8a97267517c5e50074c2c819941and で <code>file</code> と指定することでこのモジュールは起動されます。</p>
6ae232055d4d8a97267517c5e50074c2c819941and</div>
6ae232055d4d8a97267517c5e50074c2c819941and<div id="quickview"><h3 class="directives">ディレクティブ</h3>
6ae232055d4d8a97267517c5e50074c2c819941and<ul id="toc">
6ae232055d4d8a97267517c5e50074c2c819941and<li><img alt="" src="/images/down.gif" /> <a href="#authuserfile">AuthUserFile</a></li>
6ae232055d4d8a97267517c5e50074c2c819941and</ul>
6ae232055d4d8a97267517c5e50074c2c819941and<h3>参照</h3>
6ae232055d4d8a97267517c5e50074c2c819941and<ul class="seealso">
6ae232055d4d8a97267517c5e50074c2c819941and<li>
6ae232055d4d8a97267517c5e50074c2c819941and <code class="directive"><a href="/mod/mod_auth_basic.html#authbasicprovider">AuthBasicProvider</a></code>
6ae232055d4d8a97267517c5e50074c2c819941and</li>
6ae232055d4d8a97267517c5e50074c2c819941and<li>
6ae232055d4d8a97267517c5e50074c2c819941and <code class="directive"><a href="/mod/mod_auth_digest.html#authdigestprovider">AuthDigestProvider</a></code>
6ae232055d4d8a97267517c5e50074c2c819941and</li>
6ae232055d4d8a97267517c5e50074c2c819941and<li><code class="program"><a href="/programs/htpasswd.html">htpasswd</a></code></li>
6ae232055d4d8a97267517c5e50074c2c819941and<li><code class="program"><a href="/programs/htdigest.html">htdigest</a></code></li>
30471a4650391f57975f60bbb6e4a90be7b284bfhumbedooh</ul><ul class="seealso"><li><a href="#comments_section">コメント</a></li></ul></div>
6ae232055d4d8a97267517c5e50074c2c819941and
6ae232055d4d8a97267517c5e50074c2c819941and<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
6ae232055d4d8a97267517c5e50074c2c819941and<div class="directive-section"><h2><a name="AuthUserFile" id="AuthUserFile">AuthUserFile</a> <a name="authuserfile" id="authuserfile">ディレクティブ</a></h2>
6ae232055d4d8a97267517c5e50074c2c819941and<table class="directive">
6ae232055d4d8a97267517c5e50074c2c819941and<tr><th><a href="directive-dict.html#Description">説明:</a></th><td>認証に使用するユーザとパスワードの一覧が格納されている、
6ae232055d4d8a97267517c5e50074c2c819941andテキストファイルの名前を設定する</td></tr>
6ae232055d4d8a97267517c5e50074c2c819941and<tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>AuthUserFile <var>file-path</var></code></td></tr>
6ae232055d4d8a97267517c5e50074c2c819941and<tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>ディレクトリ, .htaccess</td></tr>
6ae232055d4d8a97267517c5e50074c2c819941and<tr><th><a href="directive-dict.html#Override">上書き:</a></th><td>AuthConfig</td></tr>
6ae232055d4d8a97267517c5e50074c2c819941and<tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>Base</td></tr>
6ae232055d4d8a97267517c5e50074c2c819941and<tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td>mod_authn_file</td></tr>
6ae232055d4d8a97267517c5e50074c2c819941and</table>
6ae232055d4d8a97267517c5e50074c2c819941and <p><code class="directive">AuthUserFile</code> ディレクティブは、
6ae232055d4d8a97267517c5e50074c2c819941and ユーザ認証のためのユーザとパスワードの一覧を格納した
6ae232055d4d8a97267517c5e50074c2c819941and テキストファイルの名前を設定します。<var>file-path</var>
6ae232055d4d8a97267517c5e50074c2c819941and はユーザファイルへのパスです。
6ae232055d4d8a97267517c5e50074c2c819941and もし絶対パスでなければ、
6ae232055d4d8a97267517c5e50074c2c819941and <code class="directive"><a href="/mod/core.html#serverroot">ServerRoot</a></code>
6ae232055d4d8a97267517c5e50074c2c819941and からの相対パスとして扱われます。</p>
6ae232055d4d8a97267517c5e50074c2c819941and
6ae232055d4d8a97267517c5e50074c2c819941and <p>ユーザファイルの各行には、ユーザ名、コロン、
6ae232055d4d8a97267517c5e50074c2c819941and 暗号化したパスワードを記述します。
6ae232055d4d8a97267517c5e50074c2c819941and 同一ユーザ ID が複数回登録された時は、
6ae232055d4d8a97267517c5e50074c2c819941and <code class="module"><a href="/mod/mod_authn_file.html">mod_authn_file</a></code>
6ae232055d4d8a97267517c5e50074c2c819941and は最初に見つかったパスワードを使用して認証します。</p>
6ae232055d4d8a97267517c5e50074c2c819941and
6ae232055d4d8a97267517c5e50074c2c819941and <p>バイナリ配布の一部としてインストールされるか、
6ae232055d4d8a97267517c5e50074c2c819941and あるいは <code>src/support</code> にある
6ae232055d4d8a97267517c5e50074c2c819941and <code class="program"><a href="/programs/htpasswd.html">htpasswd</a></code>
6ae232055d4d8a97267517c5e50074c2c819941and ユーティリティで、この <em>HTTP 基本認証</em>
6ae232055d4d8a97267517c5e50074c2c819941and 用パスワードファイルをメインテナンスします。
6ae232055d4d8a97267517c5e50074c2c819941and 詳細は <a href="/programs/htpasswd.html">man
6ae232055d4d8a97267517c5e50074c2c819941and ページ</a>をご覧頂くとして、簡単には:</p>
6ae232055d4d8a97267517c5e50074c2c819941and
6ae232055d4d8a97267517c5e50074c2c819941and <p>初期 ID <code>username</code> で、<code>Filename</code>
6ae232055d4d8a97267517c5e50074c2c819941and というパスワードファイルを生成します。
6ae232055d4d8a97267517c5e50074c2c819941and 次のコマンドを発行するとパスワードが要求されます:</p>
6ae232055d4d8a97267517c5e50074c2c819941and
6ae232055d4d8a97267517c5e50074c2c819941and <div class="example"><p><code>
6ae232055d4d8a97267517c5e50074c2c819941and htpasswd -c Filename username
6ae232055d4d8a97267517c5e50074c2c819941and </code></p></div>
6ae232055d4d8a97267517c5e50074c2c819941and
6ae232055d4d8a97267517c5e50074c2c819941and <p>パスワードファイル <code>Filename</code> に、<code>username2</code>
6ae232055d4d8a97267517c5e50074c2c819941and を追加したり修正したりします:</p>
6ae232055d4d8a97267517c5e50074c2c819941and
6ae232055d4d8a97267517c5e50074c2c819941and <div class="example"><p><code>
6ae232055d4d8a97267517c5e50074c2c819941and htpasswd Filename username2
6ae232055d4d8a97267517c5e50074c2c819941and </code></p></div>
6ae232055d4d8a97267517c5e50074c2c819941and
6ae232055d4d8a97267517c5e50074c2c819941and <p>(訳注: 非常に多くのユーザを登録すると大きなファイルになりますが)
6ae232055d4d8a97267517c5e50074c2c819941and 大きなテキストファイルを検索するのは<em>非常に効率が悪い</em>
6ae232055d4d8a97267517c5e50074c2c819941and ということに注意してください。そのような必要のある時は、
6ae232055d4d8a97267517c5e50074c2c819941and <code class="directive"><a href="/mod/mod_authn_dbm.html#authdbmuserfile">AuthDBMUserFile</a></code>
6ae232055d4d8a97267517c5e50074c2c819941and を代わりに使ってください。</p>
6ae232055d4d8a97267517c5e50074c2c819941and
6ae232055d4d8a97267517c5e50074c2c819941and <p><em>HTTP ダイジェスト認証</em>を使用する場合は、
6ae232055d4d8a97267517c5e50074c2c819941and <a href="/programs/htpasswd.html">htpasswd</a>
6ae232055d4d8a97267517c5e50074c2c819941and プログラムでは不十分です。その代わりに
6ae232055d4d8a97267517c5e50074c2c819941and <code class="program"><a href="/programs/htdigest.html">htdigest</a></code>
6ae232055d4d8a97267517c5e50074c2c819941and を使用してください。ダイジェスト認証用のデータと
6ae232055d4d8a97267517c5e50074c2c819941and 基本認証用のデータを同一ファイルに混ぜて保存できない、
6ae232055d4d8a97267517c5e50074c2c819941and ということに注意してください。</p>
6ae232055d4d8a97267517c5e50074c2c819941and
6ae232055d4d8a97267517c5e50074c2c819941and <div class="warning"><h3>セキュリティ</h3>
6ae232055d4d8a97267517c5e50074c2c819941and <p><code class="directive">AuthUserFile </code>
6ae232055d4d8a97267517c5e50074c2c819941and は、ウェブサーバのドキュメントツリーの外側に保管するようにしてください。
6ae232055d4d8a97267517c5e50074c2c819941and 保護しようとしているディレクトリ以下には、<strong>置かないで下さい</strong>。
6ae232055d4d8a97267517c5e50074c2c819941and そうしないと <code class="directive">AuthUserFile</code> は
6ae232055d4d8a97267517c5e50074c2c819941and ダウンロードできてしまいます。</p>
6ae232055d4d8a97267517c5e50074c2c819941and </div>
6ae232055d4d8a97267517c5e50074c2c819941and
6ae232055d4d8a97267517c5e50074c2c819941and</div>
6ae232055d4d8a97267517c5e50074c2c819941and</div>
6ae232055d4d8a97267517c5e50074c2c819941and<div class="bottomlang">
b43f840409794ed298e8634f6284741f193b6c4ftakashi<p><span>翻訳済み言語: </span><a href="/en/mod/mod_authn_file.html" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |
11495c9f0bd33e51a25b4d532beadfbcf9b944a3nilgun<a href="/fr/mod/mod_authn_file.html" hreflang="fr" rel="alternate" title="Français">&nbsp;fr&nbsp;</a> |
6ae232055d4d8a97267517c5e50074c2c819941and<a href="/ja/mod/mod_authn_file.html" title="Japanese">&nbsp;ja&nbsp;</a> |
f086b4b402fa9a2fefc7dda85de2a3cc1cd0a654rjung<a href="/ko/mod/mod_authn_file.html" hreflang="ko" rel="alternate" title="Korean">&nbsp;ko&nbsp;</a></p>
30471a4650391f57975f60bbb6e4a90be7b284bfhumbedooh</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>This section is experimental!</strong><br />Comments placed here should not be expected
ba543b319188dc1887607f6d59feddc00e38eee2humbedoohto last beyond the testing phase of this system, nor do we in any way guarantee that we'll read them.</div>
0d0ba3a410038e179b695446bb149cce6264e0abnd<script type="text/javascript"><!--//--><![CDATA[//><!--
30471a4650391f57975f60bbb6e4a90be7b284bfhumbedoohvar disqus_shortname = 'httpd';
0d0ba3a410038e179b695446bb149cce6264e0abndvar disqus_identifier = 'http://httpd.apache.org/docs/2.4/mod/mod_authn_file.html.ja';
0d0ba3a410038e179b695446bb149cce6264e0abnd(function(w, d) {
888cb40bdeec5abf452bd85d6bf63b26d5913d4chumbedooh var disabled = true;
888cb40bdeec5abf452bd85d6bf63b26d5913d4chumbedooh if (w.location.hostname.toLowerCase() == "httpd.apache.org" && disabled !== true) {
0d0ba3a410038e179b695446bb149cce6264e0abnd d.write('<div id="disqus_thread"><\/div>');
0d0ba3a410038e179b695446bb149cce6264e0abnd var s = d.createElement('script');
0d0ba3a410038e179b695446bb149cce6264e0abnd s.type = 'text/javascript';
0d0ba3a410038e179b695446bb149cce6264e0abnd s.async = true;
0d0ba3a410038e179b695446bb149cce6264e0abnd s.src = 'http' + '://' + disqus_shortname + '.disqus.com/embed.js';
0d0ba3a410038e179b695446bb149cce6264e0abnd (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s);
0d0ba3a410038e179b695446bb149cce6264e0abnd }
0d0ba3a410038e179b695446bb149cce6264e0abnd else {
888cb40bdeec5abf452bd85d6bf63b26d5913d4chumbedooh d.write('<div id="disqus_thread">Comments are disabled for this page at the moment.<\/div>');
0d0ba3a410038e179b695446bb149cce6264e0abnd }
0d0ba3a410038e179b695446bb149cce6264e0abnd})(window, document);
30471a4650391f57975f60bbb6e4a90be7b284bfhumbedooh//--><!]]></script></div><div id="footer">
b43f840409794ed298e8634f6284741f193b6c4ftakashi<p class="apache">Copyright 2012 The Apache Software Foundation.<br />この文書は <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a> のライセンスで提供されています。.</p>
d229f940abfb2490dee17979e9a5ff31b7012eb5rbowen<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[//><!--
0d0ba3a410038e179b695446bb149cce6264e0abndif (typeof(prettyPrint) !== 'undefined') {
7fec19672a491661b2fe4b29f685bc7f4efa64d4nd prettyPrint();
7fec19672a491661b2fe4b29f685bc7f4efa64d4nd}
7fec19672a491661b2fe4b29f685bc7f4efa64d4nd//--><!]]></script>
6ae232055d4d8a97267517c5e50074c2c819941and</body></html>