title: OTRS generic interface rest authentication
body: <p>I'm trying to consume the OTRS generic interface. The rest service is created by the import functionallity. I found the files needed for import here <a href="https://stackoverflow.com/questions/25068807/web-service-metedata-wsdl-for-otrs-ticketconnector">Consuming OTRS TicketConnector from .NET apps</a></p>
  
  <p>My problem is when I try to consume the interface for example with a curl command</p>
  
  <pre><code>curl http://&lt;user&gt;:&lt;password&gt;@&lt;server-ip&gt;:&lt;port&gt;/otrs/nph-genericinterface.pl/Webservice/GenericTicketConnectorREST/Ticket/&lt;Ticket-id&gt; -X GET
  </code></pre>
  
  <p>The result of the command is </p>
  
  <pre><code>{"Error":{"ErrorCode":"TicketGet.AuthFail","ErrorMessage":"TicketGet: Authorization failing!"}}
  </code></pre>
  
  <p>I tried every user/password combination that makes sense to me. I tried the otrs admin account, agent account, customer account, root account of the server, EVERYTHING! I can't find a information in the docs that states wich account type is needed.</p>
  
  <p>Here are some information that are printed out by the webservice debugger</p>
  
  <p>Communication sequence started</p>
  
  <pre><code>$VAR1 = {
    'DOCUMENT_ROOT' =&gt; '/srv/www/htdocs',
    'GATEWAY_INTERFACE' =&gt; 'CGI/1.1',
    'HTTP_ACCEPT' =&gt; '*/*',
    'HTTP_HOST' =&gt; '&lt;server-name&gt;',
    'HTTP_USER_AGENT' =&gt; 'curl/7.39.0',
    'MOD_PERL' =&gt; 'mod_perl/2.0.4',
    'MOD_PERL_API_VERSION' =&gt; '2',
    'PATH' =&gt; '/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/usr/lib/mit/bin:/usr/lib/mit/sbin',
    'PATH_INFO' =&gt; '/Webservice/GenericTicketConnectorREST/Ticket/&lt;ticket-id&gt;',
    'PATH_TRANSLATED' =&gt; '/srv/www/htdocs/Webservice/GenericTicketConnectorREST/Ticket/&lt;ticket-id&gt;',
    'QUERY_STRING' =&gt; '',
    'REMOTE_ADDR' =&gt; '&lt;server-ip&gt;',
    'REMOTE_PORT' =&gt; '56065',
    'REQUEST_METHOD' =&gt; 'GET',
    'REQUEST_URI' =&gt; '/otrs/nph-genericinterface.pl/Webservice/GenericTicketConnectorREST/Ticket/&lt;ticket-id&gt;',
    'SCRIPT_FILENAME' =&gt; '/opt/otrs/bin/cgi-bin/nph-genericinterface.pl',
    'SCRIPT_NAME' =&gt; '/otrs/nph-genericinterface.pl',
    'SERVER_ADDR' =&gt; '&lt;server-ip&gt;',
    'SERVER_ADMIN' =&gt; '&lt;admin-account&gt;',
    'SERVER_NAME' =&gt; '&lt;server-name&gt;',
    'SERVER_PORT' =&gt; '80',
    'SERVER_PROTOCOL' =&gt; 'HTTP/1.1',
    'SERVER_SIGNATURE' =&gt; '&lt;address&gt;Apache/2.2.12 (Linux/SUSE) Server at &lt;server-name&gt; Port 80&lt;/address&gt;
  ',
    'SERVER_SOFTWARE' =&gt; 'Apache/2.2.12 (Linux/SUSE)'
  };
  </code></pre>
  
  <p>Deteced operation TicketGet</p>
  
  <pre><code>No data provided
  </code></pre>
  
  <p>Incoming data before mapping</p>
  
  <pre><code>$VAR1 = {
    'RequestMethod' =&gt; 'GET',
    'TicketID' =&gt; '&lt;ticket-id&gt;'
  };
  </code></pre>
  
  <p>TicketGet.AuthFail</p>
  
  <pre><code>TicketGet: Authorization failing!
  </code></pre>
  
  <p>Outgoing data before mapping</p>
  
  <pre><code>$VAR1 = {
    'Error' =&gt; {
      'ErrorCode' =&gt; 'TicketGet.AuthFail',
      'ErrorMessage' =&gt; 'TicketGet: Authorization failing!'
    }
  };
  </code></pre>
  
  <p><strong>Long story short</strong>: what type of authentication or user type otrs expects to access the generic interface?</p>