I received control of our OTRS system to work on a project, and I am not really familiar with it yet. However, I was looking into the Generic Interface possibilities and it would make a lot of things we do a lot easier. There is one issue: I can't authorize. I followed the steps and imported GenericTicketConnectorREST.yml into the Web Services, but whenever I run the following request from a remote system, it always returns the same error:
Code: Select all
https://<server-location>/otrs/nph-genericinterface.pl/Webservice/GenericTicketConnectorREST/Ticket/88686?UserLogin=<agent-user>&Password=<agent-pw>
Code: Select all
{"Error":{"ErrorCode":"TicketGet.AuthFail","ErrorMessage":"TicketGet: Authorization failing!"}}
Code: Select all
$VAR1 = {
'CONTEXT_DOCUMENT_ROOT' => '/opt/otrs/bin/cgi-bin/',
'CONTEXT_PREFIX' => '/otrs/',
'DOCUMENT_ROOT' => '/opt/otrs/var/httpd/htdocs/',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'HTTPS' => 'on',
'HTTP_ACCEPT' => '*/*',
'HTTP_ACCEPT_ENCODING' => 'gzip, deflate',
'HTTP_CACHE_CONTROL' => 'no-cache',
'HTTP_CONNECTION' => 'keep-alive',
'HTTP_HOST' => '<server-name>',
'HTTP_POSTMAN_TOKEN' => '5196524c-67df-4c1e-88e8-ab545d7eca7b',
'HTTP_USER_AGENT' => 'PostmanRuntime/7.20.1',
'MOD_PERL' => 'mod_perl/2.0.11',
'MOD_PERL_API_VERSION' => '2',
'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin',
'PATH_INFO' => '/Webservice/GenericTicketConnectorREST/Ticket/88686',
'PATH_TRANSLATED' => '/opt/otrs/var/httpd/htdocs/Webservice/GenericTicketConnectorREST/Ticket/88686',
'QUERY_STRING' => 'userLogin=<agent-login>&Password=<agent-pw>',
'REMOTE_ADDR' => '<remote-ip>',
'REMOTE_PORT' => '<remote-port>',
'REQUEST_METHOD' => 'GET',
'REQUEST_SCHEME' => 'https',
'REQUEST_URI' => '/otrs/nph-genericinterface.pl/Webservice/GenericTicketConnectorREST/Ticket/88686?userLogin=barcoo&Password=otrs',
'SCRIPT_FILENAME' => '/opt/otrs/bin/cgi-bin/nph-genericinterface.pl',
'SCRIPT_NAME' => '/otrs/nph-genericinterface.pl',
'SERVER_ADDR' => '<server-ip>',
'SERVER_ADMIN' => 'root@localhost',
'SERVER_NAME' => '<server-name>',
'SERVER_PORT' => '443',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'SERVER_SIGNATURE' => '',
'SERVER_SOFTWARE' => 'Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips mod_auth_gssapi/1.5.1 mod_perl/2.0.11 Perl/v5.16.3',
'SSL_TLS_SNI' => '<server-name>',
'UNIQUE_ID' => 'XhcBKXqLyI@kgfdxsGWYUAAAAAk'
};
Code: Select all
$VAR1 = {
'Password' => '<agent-pw>',
'RequestMethod' => 'GET',
'TicketID' => '88686',
'UserLogin' => '<agent-login>'
};
Maybe there is some setting that needs to be changed? I looked through everything but can't seem to find it. Any of you have an idea?