Trac 0.12 Configuring Authentication

mod_fcgidの場合はこちらと同じだそうです。

http://trac.edgewall.org/wiki/TracModWSGI#ConfiguringAuthentication

ダイジェスト認証
Using Digest Authentication

# htdigest /home/trac/grrome/trac.htpasswd trac admin

httpd.confの設定

<Location /trac/login>
  AuthType Digest
  AuthName "trac"
  AuthDigestDomain /trac
  AuthDigestProvider file
  AuthUserFile /home/trac/grrome/trac.htpasswd
  Require valid-user
</Location>

adminユーザーを TRAC_ADMINとして追加してみます。

trac-admin /home/trac/grrome permission add admin TRAC_ADMIN

/tracからログインすると /trac以下のページで adminとしてログイン中と表示されました^-^。

完全に /trac/以下にアクセスさせないようにするために
/trac/login は /trac/に変えました。
ログアウトは無くなります。

adminでログイン出来ても仕方ないので、他のIDを作成して adminは htpasswdから削除します。

権限を削除してみる。

http://trac.edgewall.org/wiki/TracPermissions

# trac-admin /home/trac/grrome permission remove admin TRAC_ADMIN

adminの管理ページは、「利用可能な管理画面はありません」と表示されました。

digest認証から adminを削除
trac.htpasswdからadminの行を削除しました。
当然ログインできません。

後はadminの代わりのユーザーを作成して完了です!

This entry was posted on 月曜日, 4月 25th, 2011 at 3:35 PM and is filed under Trac. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.

Unityによるゲームを公開しております iOS/Android
https://itunes.apple.com/jp/app/lost-knight-3d-action/id900917032
https://play.google.com/store/apps/details?id=com.groundroad.runknight

各種開発支援・機能開発等小さいお仕事などもお請けしております。
unity開発支援, PHPシステム開発, javascript/html5 フロント開発, titanium mobileアプリ開発
お気軽にお問い合わせください
大崎・五反田近郊での対面でのお打ち合わせはいつでも可能です。