XL認証関数
著者: 森 洋久 / joshua@globalbase.org ※
*
概要
*
XL関数解説 authentification
*
XL関数解説 service
*
XL関数解説 target
*
XL関数解説 auth-transaction
概要
ver.B.b16以降においてLANDSCAPEサーバにおいて認証機能を実装した。そのための関数をここで解説する。LANDSCAPEサーバにおいて、xldocs配下の各ディレクトリにあるコンテンツを認証によって保護作成するためには、保護したいディレクトリに、「.xlaccess」という不可視ファイルをおき、ここに認証命令を設定することによって実現する。いわばapacheの.htaccessのようなファイルである。その一例を以下に挙げる。
<?xl version="0.1" encoding="UTF-8"?>
<authentification>
<service
name="access-admin"
type="fix-user-passwd"
user="Etsuransha"
passwd="etsu1523"
description="Aero Photograph"
description-url="http://www.globalbase.org/"
/>
<service
name="root-admin"
type="localhost-root"
/>
<target prefix=".mtx" operation="Get">
access-admin
</target>
<target prefix=".mtx" operation="Get">
root-admin
</target>
<target prefix=".lst" operation="Get">
access-admin
</target>
<target prefix=".lst" operation="Get">
root-admin
</target>
</authentification>
基本的には、authentification環境の中において、serviceにより認証の単位となる
サービス を指定する。そのサービス名を、各アクセス状況に対応させる(
XL関数(環境)(target))。このコンテンツをアクセスした場合、どのようにCOSMOS上に表示されるかは、
ウィンドウ(認証ダイアログウィンドウ)を参照されたい。
▲
ページトップへ戻る