In fact, it took me two hours to complete the three simple steps. Various modules could not be loaded, and various pitfalls finally passed the LDAP authentication. In fact, the error is that the package is not installed. The premise is to deploy the LDAP server, install RT, and deploy rt. For more information, see the installation steps I mentioned earlier. Start as follows:
1. package installation:
apt-get install rt4-extension-authenexternalauth
2. Modify the RT configuration file:
First backup:
cp /etc/request-tracker4/RT_SiteConfig.pm{,.bak}vim /etc/request-tracker4/RT_SiteConfig.pm
Add the following code to enable LDAP external authentication at the end:
# External auth specifications Set(@Plugins, (qw(RT::Authen::ExternalAuth))); Set($ExternalAuthPriority, [ ‘My_LDAP‘ ]); Set($ExternalInfoPriority, [ ‘My_LDAP‘, ]); Set($AutoCreateNonExternalUsers, 0); Set($ExternalSettings, { ‘My_LDAP‘ => { ‘type‘ => ‘ldap‘, ‘server‘ => ‘10.1.1.10‘, ‘base‘ => ‘ou=People,ou=Beijing,dc=ienjoy,dc=com‘, ‘filter‘ => ‘(objectClass=*)‘, ‘attr_match_list‘ => [ ‘Name‘, ‘EmailAddress‘, ‘RealName‘, ], ‘attr_map‘ => { ‘Name‘ => ‘uid‘, ‘EmailAddress‘ => ‘mail‘, ‘RealName‘ => ‘cn‘ }, }, } );
3. Restart the service
/etc/init.d/apache2 restart
Test:
Access: http: // 10.1.1.11/RT and enter the LDAP User:
This article is from the "DBQ blog" and will not be reproduced!
Rt4.2.4 + LDAP external authentication (wheezy)