LDAP Unresponsive

I am trying to configure our new RT 5.1 to LDAP on redhat, but nothing is working. I have all the settings configured in the RT_SiteConfig.pm, but there is nothing in the logs that it is even trying to connect. Below is a sample of my configuration:


What auth methods do you like and in what order?

Set($AuthMethods, [‘LDAP’, ‘Internal’]);

Use the below LDAP source for both authentication, as well as user

information

Set( $ExternalAuthPriority, [“My_LDAP”] );
Set( $ExternalInfoPriority, [“My_LDAP”] );

Set($LDAPHost,‘host.user.example.com’);
Set($LDAPUser,‘user@user.example.com’);
Set($LDAPPassword,‘password’);
Set($LDAPBase, ‘dc=user,dc=example,dc=com’);
Set($LDAPFilter, ‘(objectcategory=user’);
Set($LdapDisableFilter, ‘(employmentStatus=Terminated)’);
Set($LDAPMapping, {

‘Name’ => ‘sAMAccountName’,
‘EmailAddress’ => ‘mail’,
‘Organization’ => ‘physicalDeliveryOfficeName’,
‘RealName’ => ‘displayName’,
‘ExternalContactInfoId’ => ‘dn’,
‘ExternalAuthId’ => ‘sAMAccountName’,
‘Gecos’ => ‘sAMAccountName’,
‘HomePhone’ => ‘homePhone’,
‘WorkPhone’ => ‘telephoneNumber’,
‘MobilePhone’ => ‘mobile’,
‘PagerPhone’ => ‘pager’,
‘Address1’ => ‘streetAddress’,
‘Address2’ => ‘postOfficeBox’,
‘City’ => ‘l’,
‘State’ => ‘st’,
‘Zip’ => ‘postalCode’,
‘Country’ => ‘co’,
‘FreeformContactInfo’ => ‘info’,
});

Make users created from LDAP Privileged

Set( $UserAutocreateDefaultsOnLogin, { Privileged => 1 } );

Users should still be autocreated by RT as internal users if they

fail to exist in an external service; this is so requestors (who

are not in LDAP) can still be created when they email in.

Set($AutoCreateNonExternalUsers, 1);

#LDAP Configuration
Set($ExternalSettings, {
‘My_LDAP’ => {
‘type’ => ‘ldap’,

	'server'                    =>  'host.user.example.com',
	'user'                      =>  'user@user.example.com',
	'pass'                      =>  'password',

	'base'                      =>  'dc=user,dc=example,dc=com',
	'filter'                    =>  '(objectcategory=user)',
	'd_filter'                  =>  '(employmentStatus=Terminated)',

	'attr_match_list' => [
		'ExternalContactInfoId', 
		'Name',
		'EmailAddress', 
		'RealName',
	],
	'attr_map' => {
		'Name' => 'sAMAccountName',
		'EmailAddress' => 'mail',
		'Organization' => 'physicalDeliveryOfficeName',
		'RealName' => 'displayName',
		'ExternalContactInfoId' => 'dn',
		'ExternalAuthId' => 'sAMAccountName',
		'Gecos' => 'sAMAccountName',
		'HomePhone' => 'homePhone',
		'WorkPhone' => 'telephoneNumber',
		'MobilePhone' => 'mobile',
		'PagerPhone' => 'pager',
		'Address1' => 'streetAddress',
		'Address2' => 'postOfficeBox',
		'City' => 'l',
		'State' => 'st',
		'Zip' => 'postalCode',
		'Country' => 'co',
		'FreeformContactInfo' => 'info',
	},
},

} );


Problem is now fixed, had to remove some of the map settings that were obsolete.