RT 4.4.4 LDAP External Auth with AD (SOLVED)

EDIT: I have managed to solve this issue by re-installing RT. It seems to have been missing something

Hi,

I have been trying to get External Auth working with Active Directory. I have got the LDAP import working but can’t seem to get the LDAP login working. Below is the part of the site config and then the error messages that show in the debug log.

Any help on this would be greatly appreciated

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

Set($ExternalSettings, {
    'My_LDAP'       =>  {
        'type'             =>  'ldap',
        'server'           =>  'dc1.lab.local',
        'user'             =>  'CN=svc rt,OU=Service Accounts,DC=lab,DC=local',
        'pass'             =>  '*************',
        'base'             =>  'CN=Users,DC=lab,DC=local',
        'filter'             =>  '(objectClass=user)',
        'd_filter'         =>  '(userAccountControl:1.2.840.113556.1.4.803:=2)',

        'attr_match_list'  => [
            'Name',
            'EmailAddress',
        ],

        'attr_map' => {
            'Name'         => 'sAMAccountName',
            'EmailAddress' => 'mail',
            'RealName'     => 'cn',
        },
    },
} );

Log file:
[12120] [Sun Apr 12 13:06:39 2020] [debug]: Attempting to use external auth service: My_LDAP (/opt/rt4/sbin/…/lib/RT/Authen/ExternalAuth.pm:288)
[12120] [Sun Apr 12 13:06:39 2020] [debug]: Calling UserExists with $username (ervcd) and $service (My_LDAP) (/opt/rt4/sbin/…/lib/RT/Authen/ExternalAuth.pm:329)
[12120] [Sun Apr 12 13:06:39 2020] [debug]: UserExists params:
username: ervcd , service: My_LDAP (/opt/rt4/sbin/…/lib/RT/Authen/ExternalAuth/LDAP.pm:486)
[12120] [Sun Apr 12 13:06:39 2020] [error]: Can’t locate object method “as_string” via package “(&(objectClass=User)(objectCategory=Person))” (perhaps you forgot to load “(&(objectClass=User)(objectCategory=Person))”?) at /opt/rt4/sbin/…/lib/RT/Authen/ExternalAuth/LDAP.pm line 516.

Stack:
[/opt/rt4/sbin/…/lib/RT/Authen/ExternalAuth/LDAP.pm:516]
[/opt/rt4/sbin/…/lib/RT/Authen/ExternalAuth.pm:583]
[/opt/rt4/sbin/…/lib/RT/Authen/ExternalAuth.pm:330]
[/opt/rt4/share/html/Elements/DoAuth:57]
[/opt/rt4/sbin/…/lib/RT/Interface/Web.pm:310]
[/opt/rt4/share/html/autohandler:53] (/opt/rt4/sbin/…/lib/RT/Interface/Web/Handler.pm:209)
[12120] [Sun Apr 12 13:06:39 2020] [debug]: Attempting to use external auth service: My_LDAP (/opt/rt4/sbin/…/lib/RT/Authen/ExternalAuth.pm:288)
[12120] [Sun Apr 12 13:06:39 2020] [debug]: SSO Failed and no user to test with. Nexting (/opt/rt4/sbin/…/lib/RT/Authen/ExternalAuth.pm:316)
[12120] [Sun Apr 12 13:06:39 2020] [debug]: Autohandler called ExternalAuth. Response: (0, No User) (/opt/rt4/share/html/Elements/DoAuth:58)
[12120] [Sun Apr 12 13:06:39 2020] [debug]: Attempting to use external auth service: My_LDAP (/opt/rt4/sbin/…/lib/RT/Authen/ExternalAuth.pm:288)
[12120] [Sun Apr 12 13:06:39 2020] [debug]: SSO Failed and no user to test with. Nexting (/opt/rt4/sbin/…/lib/RT/Authen/ExternalAuth.pm:316)
[12120] [Sun Apr 12 13:06:39 2020] [debug]: Autohandler called ExternalAuth. Response: (0, No User) (/opt/rt4/share/html/Elements/DoAuth:58)
[12120] [Sun Apr 12 13:06:40 2020] [debug]: Attempting to use external auth service: My_LDAP (/opt/rt4/sbin/…/lib/RT/Authen/ExternalAuth.pm:288)
[12120] [Sun Apr 12 13:06:40 2020] [debug]: SSO Failed and no user to test with. Nexting (/opt/rt4/sbin/…/lib/RT/Authen/ExternalAuth.pm:316)
[12120] [Sun Apr 12 13:06:40 2020] [debug]: Autohandler called ExternalAuth. Response: (0, No User) (/opt/rt4/share/html/Elements/DoAuth:58)
[12120] [Sun Apr 12 13:06:40 2020] [debug]: Attempting to use external auth service: My_LDAP (/opt/rt4/sbin/…/lib/RT/Authen/ExternalAuth.pm:288)
[12120] [Sun Apr 12 13:06:40 2020] [debug]: SSO Failed and no user to test with. Nexting (/opt/rt4/sbin/…/lib/RT/Authen/ExternalAuth.pm:316)
[12120] [Sun Apr 12 13:06:40 2020] [debug]: Autohandler called ExternalAuth. Response: (0, No User) (/opt/rt4/share/html/Elements/DoAuth:58)
[12120] [Sun Apr 12 13:06:40 2020] [debug]: Attempting to use external auth service: My_LDAP (/opt/rt4/sbin/…/lib/RT/Authen/ExternalAuth.pm:288)
[12120] [Sun Apr 12 13:06:40 2020] [debug]: SSO Failed and no user to test with. Nexting (/opt/rt4/sbin/…/lib/RT/Authen/ExternalAuth.pm:316)
[12120] [Sun Apr 12 13:06:40 2020] [debug]: Autohandler called ExternalAuth. Response: (0, No User) (/opt/rt4/share/html/Elements/DoAuth:58)

[9122] [Mon Apr 13 12:36:12 2020] [critical]: Something went wrong while trying to run RT’s standalone web server:
Can’t locate Plack/Handler/–port.pm in @INC (@INC contains: /opt/rt4/sbin/…/local/lib /opt/rt4/sbin/…/lib /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/local/share/perl5/Plack/Util.pm line 26. (/opt/rt4/sbin/…/lib/RT.pm:408)
Something went wrong while trying to run RT’s standalone web server:
Can’t locate Plack/Handler/–port.pm in @INC (@INC contains: /opt/rt4/sbin/…/local/lib /opt/rt4/sbin/…/lib /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/local/share/perl5/Plack/Util.pm line 26.
Good day everyone, i have finished installing RT 4.4.3 on CentOS 7, trying to start launch RT on my web browser but it is giving this ;


instead of RT logon interface, i then try to run ->
/opt/rt4/sbin/rt-server --server --port 8080
and this is the error am getting;
[9122] [Mon Apr 13 12:36:12 2020] [critical]: Something went wrong while trying to run RT’s standalone web server:
Can’t locate Plack/Handler/–port.pm in @INC (@INC contains: /opt/rt4/sbin/…/local/lib /opt/rt4/sbin/…/lib /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/local/share/perl5/Plack/Util.pm line 26. (/opt/rt4/sbin/…/lib/RT.pm:408)
Something went wrong while trying to run RT’s standalone web server:
Can’t locate Plack/Handler/–port.pm in @INC (@INC contains: /opt/rt4/sbin/…/local/lib /opt/rt4/sbin/…/lib /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/local/share/perl5/Plack/Util.pm line 26.
pls how can i get this sort out i have been working on this for weeks now pls i despiraetly wait for your favorable response.
thank you.
regards.