TestLink で LDAP 認証の設定を行うには、config.inc.php
を編集する必要があるみたいです。
Bitnami TestLink の場合、config.inc.php
は以下の場所にあります。
/opt/bitnami/testlink/
実際には上記にあるのはシンボリックリンクで、実体は以下の場所にあります。
/bitnami/testlink/
環境
- TestLink 1.9.16
設定例
例えば以下のように設定します。
$tlCfg->authentication['ldap'] = array();
$tlCfg->authentication['ldap'][1]['ldap_server'] = 'example.com';
$tlCfg->authentication['ldap'][1]['ldap_port'] = '389';
$tlCfg->authentication['ldap'][1]['ldap_version'] = '3'; // could be '2' in some cases
$tlCfg->authentication['ldap'][1]['ldap_root_dn'] = 'dc=example,dc=com';
$tlCfg->authentication['ldap'][1]['ldap_bind_dn'] = 'hoge@example.com'; // Left empty for anonymous LDAP binding
$tlCfg->authentication['ldap'][1]['ldap_bind_passwd'] = 'password'; // Left empty for anonymous LDAP binding
$tlCfg->authentication['ldap'][1]['ldap_tls'] = false; // true -> use tls
// 中略
$tlCfg->authentication['ldap'][1]['ldap_organization'] = ''; // e.g. '(organizationname=*Traffic)'
$tlCfg->authentication['ldap'][1]['ldap_uid_field'] = 'sAMAccountName'; // Use 'sAMAccountName' for Active Directory
// 中略
$tlCfg->authentication['ldap_automatic_user_creation'] = true;
// Configure following fields in custom_config.inc.php according your configuration
// IMPORTANT NOTICE
// Same for all LDAP Servers if you are using MULTIPLE LDAP Servers configuration
$tlCfg->authentication['ldap'][1]['ldap_email_field'] = 'mail';
$tlCfg->authentication['ldap'][1]['ldap_firstname_field'] = 'givenname';
$tlCfg->authentication['ldap'][1]['ldap_surname_field'] = 'sn';