Exemple #1
0
 /**
  * LDAP接続チェック
  *
  * @return 接続成功(true) / 接続失敗(false)
  */
 function check_connect_ldap_ipdb()
 {
     if (!ACSLDAP::connect_ldap()) {
         return -1;
     }
     return 0;
 }
 /**
  * 外部システムとの接続チェック
  * LDAPなど外部システムからユーザ情報を取得する場合、
  * 接続チェックを行う
  *
  * @return 接続成功(true) / 接続失敗(false)
  */
 function check_connect_outside()
 {
     if (USE_LDAP_SYSTEM != "1") {
         // 外部システムに接続しない場合は問題ない
         return 0;
     }
     // LDAPに接続する仕様の場合
     if (!ACSLDAP::connect_ldap()) {
         return -1;
     }
     return 0;
 }