■ Web認証について

--------------------------------------------------------------------------
1. netjfwatcher webプロパティ

 (1) レルム(Realm)名 : netwatcher Realm
 (2) ロール(Role)名  : manager



--------------------------------------------------------------------------
 例 (1) tomcatの場合


tomcat-users.xmlファイル

<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
  <role rolename="tomcat"/>
  <role rolename="role1"/>
  <role rolename="manager"/>
  <role rolename="admin"/>
  <user username="tomcat" password="tomcat" roles="tomcat"/>
  <user username="role1" password="tomcat" roles="role1"/>
  <user username="both" password="tomcat" roles="tomcat,role1"/>
  <user username="admin" password="admin" roles="manager"/> ...... ★
</tomcat-users>


--------------------------------------------------------------------------
 例 (2) jettyの場合

   ./etc/jetty.xml 内のレルム(Realm)設定


    <!-- =========================================================== -->
    <!-- Configure Realms                                            -->
    <!-- =========================================================== -->

    <Set name="UserRealms">
      <Array type="org.mortbay.jetty.security.UserRealm">
        <Item>
          <New class="org.mortbay.jetty.security.HashUserRealm">
            <Set name="name">netwatcher Realm</Set>  ---------- ★レルム(Realm)設定
            <Set name="config">etc/netjfwatcherRealm.properties</Set>
          </New>                           |
        </Item>                            |
      </Array>                             |
    </Set>                                 |
                 +-------------------------+
                 |
                 |
   netjfwatcherRealm.properties ---- ★ユーザ名、パスワード及びロール名記述
                                                             プロパティファイル

   ロール名 managerを記述
#
# This file defines users passwords and roles for a HashUserRealm
#
# The format is
#  <username>: <password>[,<rolename> ...]
#
# Passwords may be clear text, obfuscated or checksummed.  The class 
# org.mortbay.util.Password should be used to generate obfuscated
# passwords or password checksums
#
# If DIGEST Authentication is used, the password must be in a recoverable
# format, either plain text or OBF:.
#
jetty: MD5:164c88b302622e17050af52c89945d44,user
admin: CRYPT:adpexzg3FUZAk,server-administrator,content-administrator,admin,manager
netwatcher: netwatcher,manager     ----------- ★ ユーザ名、パスワード及びロール名記述
other: OBF:1xmk1w261u9r1w1c1xmq
plain: plain

# This entry is for digest auth.  The credential is a MD5 hash of username:realmname:password
digest: MD5:6e120743ad67abfbc385bc2bb754e297