Configure ldap on rt 4.4.4


I try to use ldap wirh RT 4.4.4 but have this errors on log:

[debug]: Attempting to use external auth service: AD (/opt/rt4/sbin/../lib/RT/Authen/
[debug]: SSO Failed and no user to test with. Nexting (/opt/rt4/sbin/../lib/RT/Authen/
[debug]: Autohandler called ExternalAuth. Response: (0, No User) (/opt/rt4/share/html/Elements/DoAuth:58)

On my have this configuration.

Set($ExternalServiceUsesSSLorTLS , 0);
Set($AutoCreateNonExternalUsers , 1);
'AD'   =>  {
                'type'     =>  'ldap',
                'server'   =>  '',
                'user'     =>  'user01',
                'pass'     =>  'pass01',

Is it correct this configuration or need to be configure anything else?

I check and seeams the configuration are correct but can’t connect to ldap
What is wrong?

anybody have the same error?


Probably doesn’t apply here as OP is using ldap with RT and not with webserver

Handy tip for quick debugging of ldap settings:

  1. replicate ExternalAuth Settings for LdapImport
  2. test with rt-ldapimport --verbose --no-groups

These are the settings we use for our AD:

'type'  => 'ldap',
                'server' => 'REDACTED',
                'user' => 'REDACTED',
                'pass' => 'REDACTED',
                'base' => 'REDACTED',
                'filter' => REDACTED,
                'net_ldap_args'             => [ scheme => 'ldaps', port => 636, raw => qr/(?i:^jpegPhoto|;binary)/ ],
                'attr_match_list' =>
                'attr_map' =>
                        'Name' => 'sAMAccountName',
                        'EmailAddress' => 'mail',
                        'RealName' => 'cn',
                        'NickName' => 'givenName'