intra-mart 6.1.14

jp.co.intra_mart.foundation.security.certification
クラス LDAPUserCertification

java.lang.Object
  拡張jp.co.intra_mart.foundation.security.certification.StandardUserCertification
      拡張jp.co.intra_mart.foundation.security.certification.LDAPUserCertification
すべての実装インタフェース:
UserCertification

public class LDAPUserCertification
extends StandardUserCertification

ユーザログインLDAP認証クラス。

一般ユーザのLDAPログイン認証を行うためのクラス

初期化パラメータは以下のものを必要とします。
ログイングループごとに3つのパラメータが必要です。

パラメータ名説明
ログイングループID.provider-urlプロバイダURLを設定します(Ex : ldap://localhost:389/)。
カンマ(,)区切りで複数指定可能(Ex : ldap://localhost:389/, ldap://localhost:27272/)。
複数指定した場合、左から順にLDAPサーバに通信を試みます。通信できない場合のみ次の接続先に通信を試みます。
ログイングループID.load-balancingロードバランサを有効にします。(true/false)
設定しない場合はfalseとして扱います。
falseを指定した場合、プロバイダURLを左から順に認証を試みます。
trueを指定した場合、プロバイダURLの開始位置をランダムに決定し、決定した位置を基準に右方向に順に認証を試みます。
ログイングループID.dn 識別情報を設定します。(Ex : uid=?,ou=People, o=ldaps.intra-mart.jp)
ログイングループID.context-factory コンテキストファクトリを設定します。(Ex : com.sun.jndi.ldap.LdapCtxFactory)
ログイングループID.connect-timeout-property-name接続タイムアウトを設定するプロパティ名を設定します。(Ex : com.sun.jndi.ldap.connect.timeout)
ログイングループID.connect-timeout接続タイムアウト時間を設定します。
プロパティに com.sun.jndi.ldap.connect.timeout を指定した場合、ミリ秒数を示す0より大きい整数で指定し、LDAP プロバイダがこの値の期間中に接続を確立できないと、接続の試行は中止されます。
0 以下の整数指定した場合または設定しない場合は、TCP などのネットワークプロトコルのタイムアウト値が使用されます。
ログイングループID.attempt-on-failed-authenticationLDAP認証失敗(ユーザIDまたはパスワードが不正)時に次のプロバイダURLに認証を試みます(true/false)。
設定しない場合はfalseとして扱います。
falseを指定した場合、次のプロバイダURLに認証を試みません。
trueを指定した場合、次のプロバイダURLに認証を試みます。
permit-no-passwordパスワードなしを許可します。(true/false)
設定しない場合はfalseとして扱います。
falseを指定した場合、パスワード無しを認証失敗とみなします。
trueを指定した場合、空パスワードでLDAPに問い合わせます。
logログをコンソールに出力します。(true/false)
設定しない場合はfalseとして扱います。
デバッグ用オプションです。

ログイングループID.dn に設定する'?'の部分をユーザIDに置換して、認証を行います。
このdnの記述方法は、LDAPサーバによって異なります。

導入されたバージョン:
5.0
バージョン:
1.0

コンストラクタの概要
LDAPUserCertification()
           
 
メソッドの概要
 int certification(LoginInfo loginInfo, Account user, HttpServletRequest request, HttpServletResponse response)
          ユーザを認証する。
 void init(Map params)
          ユーザログイン認証の初期化を行います。
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

LDAPUserCertification

public LDAPUserCertification()
メソッドの詳細

certification

public int certification(LoginInfo loginInfo,
                         Account user,
                         HttpServletRequest request,
                         HttpServletResponse response)
ユーザを認証する。

定義:
インタフェース UserCertification 内の certification
オーバーライド:
クラス StandardUserCertification 内の certification
パラメータ:
loginInfo - ログイン情報
user - ユーザ情報
request - サーブレットリクエスト
response - サーブレットレスポンス
戻り値:
認証結果
認証成功 SecurityConstraint.CR_OK
認証失敗 SecurityConstraint.CR_NG
認証処理エラー SecurityConstraint.CR_ERROR
導入されたバージョン:
5.0

init

public void init(Map params)
ユーザログイン認証の初期化を行います。

ユーザログイン認証のインスタンス生成時に一度だけ呼び出されます。

定義:
インタフェース UserCertification 内の init
オーバーライド:
クラス StandardUserCertification 内の init
パラメータ:
params - 初期化パラメータのマップ

intra-mart 6.1.14

Copyright © 2000-2010 NTT DATA INTRAMART CO.,LTD.. All Rights Reserved.