TestLink整合OPENLDAP认证

编辑testlink目录下config.inc.conf

找到LDAP关键字,然后按下面修改即可!

/**
* Login authentication method:
* ‘MD5’ => use password stored on db
* ‘LDAP’ => use password from LDAP Server
*/
$tlCfg->authentication[‘method’] = ‘LDAP’;
  ##要改成LDAP才行

/** LDAP authentication credentials */
$tlCfg->authentication[‘ldap_server’] = ‘localhost; 
##修改成你的ldap服务的主机ip
$tlCfg->authentication[‘ldap_port’] = ‘389’;  ##ldap端口,如果你修改过ldap的默认端口话需要改此处
$tlCfg->authentication[‘ldap_version’] = ‘3’; // could be ‘2’ in some cases ##不需要改变
$tlCfg->authentication[‘ldap_root_dn’] = ‘dc=kinggoo,dc=com’;##你slapd.conf内的suffix
$tlCfg->authentication[‘ldap_organization’] = ”; // e.g. ‘(organizationname=*Traffic)’ ##不改没关系
$tlCfg->authentication[‘ldap_uid_field’] = ‘cn’; // Use ‘sAMAccountName’ for Active Directory ##你的用户名在哪里
$tlCfg->authentication[‘ldap_bind_dn’] = ‘cn=root,dc=kinggoo,dc=com’ ; // Left empty for anonymous LDAP binding  ##你slapd.conf内的rootdn
$tlCfg->authentication[‘ldap_bind_passwd’] = ‘openldapadmin’; // Left empty for anonymous LDAP binding ##你slapd.conf内rootpw设置的密码,如果没有设置着留空
$tlCfg->authentication[‘ldap_tls’] = false; // true -> use tls  ##可以不动默认的false

- THE END -
版权声明:
转载原创文章请注明,文章出处:http://kinggoo.com
原文地址:http://kinggoo.com/app-testlink-openldap.htm
发表评论?

0 条评论。

发表评论