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)