[SOLVED]- WS - TicketCreate:User could not be authenticated

Moderator: crythias

Locked
ciotola
Znuny newbie
Posts: 35
Joined: 27 Apr 2012, 13:56
Znuny Version: 3.2.9 /3.3 / 4.0.5
Real Name: Giampiero
Company: Atos
Location: Roma - IT

[SOLVED]- WS - TicketCreate:User could not be authenticated

Post by ciotola »

Hi to all,
we are walnking in a strange error wile we try to use the Webservices GenericTicketConnector.

we are trying to use the GenericTicketConnector for open a new Ticket via SOAP in OTRS from an external system.

We are able to call the webservices but the response is the same for each invocation (below the Output from the webservices debugger) : 'TicketCreate: User could not be authenticated!'


Incoming data before mapping (2014-09-08 10:29:26, debug)

Code: Select all

$VAR1 = {
  'Article' => {
    'Body' => 'TEST ZABBIX',
    'ContentType' => 'text/plain; charset=utf8',
    'Subject' => ' TEST ZABBIX'
  },
  'Password' => 'somepass',
  'Ticket' => {
    'CustomerUser' => 'giampiero.ciotola',
    'PriorityID' => '1',
    'Queue' => 'Webfarm::WF Infrastructure Operation',
    'State' => 'Aperto',
    'Title' => 'PROBLEM: TEST ZABBIX'
  },
  'UserLogin' => 'giampiero.ciotola'
};
TicketCreate.AuthFail (2014-09-08 10:29:26, error)
TicketCreate: User could not be authenticated!

Outgoing data before mapping (2014-09-08 10:29:26, debug)

Code: Select all

$VAR1 = {
  'Error' => {
    'ErrorCode' => 'TicketCreate.AuthFail',
    'ErrorMessage' => 'TicketCreate: User could not be authenticated!'
  }
};

The User is in the System, with the same Login and password, as Agent and as Customer.
The Login to Otrs works fine for the user.
We have also configured the same user account for the SOAP Request in Framework -> Core::SOAP
We are using th GenericTicketConnector confoiguration that we have download from github.

Any idea for solve the issue or tips that can help us in the debug ?

Tks in advance,
Giampiero
Last edited by ciotola on 22 Sep 2014, 14:42, edited 4 times in total.
OTRS in several version starting from 3.0

Production Environment
OTRS 4.0.5 - Postgres9.3
ITSM, KIX4OTRS, FAQ,SURVEY
OS RedHat 6.4

Auth: Ldap - CAS - DB
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Webservices- TicketCreate: User could not be authentic

Post by crythias »

Are you attempting to authenticate a CustomerUser or an Agent?

A link to the docs.

Code: Select all

 <!--You have a MANDATORY CHOICE of the next 3 items at this level-->
         <!--Optional:-->
         <UserLogin>?</UserLogin>
         <!--Optional:-->
         <CustomerUserLogin>?</CustomerUserLogin>
         <!--Optional:-->
         <SessionID>?</SessionID>
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
ciotola
Znuny newbie
Posts: 35
Joined: 27 Apr 2012, 13:56
Znuny Version: 3.2.9 /3.3 / 4.0.5
Real Name: Giampiero
Company: Atos
Location: Roma - IT

Re: Webservices-TicketCreate:User could not be authenticated

Post by ciotola »

GoodQuestion ... maybe that my problem is heare in the autentication.

Well if i've right understood :
1) For open a New Ticket in a specific Queue I need authenticate an Agent. In this case i need fill the tag UserLogin
2) I need also to assign the ticket to a customer. In this case so i need fill the CustomerUser tag / or the CustomerUserLogin?

Code: Select all

<?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soap:Header/>
<soap:Body>
    <TicketCreate xmlns="https://aigo-coll/GenericTicketConnector/">
    <UserLogin>giampiero.ciotola</UserLogin><Ticket><Queue>Webfarm::WF Infrastructure Operation</Queue><CustomerUserLogin>giampiero.ciotola</CustomerUserLogin><State>Aperto</State><PriorityID>1</PriorityID><Title>PROBLEM: TEST ZABBIX</Title></Ticket><Password>somepass</Password><Article><Body>TEST ZABBIX</Body><ContentType>text/plain; charset=utf8</ContentType><Subject> TEST FFANTONI</Subject></Article></TicketCreate>
</soap:Body>
</soap:Envelope>
OTRS in several version starting from 3.0

Production Environment
OTRS 4.0.5 - Postgres9.3
ITSM, KIX4OTRS, FAQ,SURVEY
OS RedHat 6.4

Auth: Ldap - CAS - DB
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Webservices-TicketCreate:User could not be authenticated

Post by crythias »

ciotola wrote:For open a New Ticket in a specific Queue I need authenticate an Agent. In this case i need fill the tag UserLogin
A customer can certainly choose her queue in the web front end. She should be just as successful with her allowed queues in the backend.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
ciotola
Znuny newbie
Posts: 35
Joined: 27 Apr 2012, 13:56
Znuny Version: 3.2.9 /3.3 / 4.0.5
Real Name: Giampiero
Company: Atos
Location: Roma - IT

Re: Webservices-TicketCreate:User could not be authenticated

Post by ciotola »

crythias we are trying to implement an integration with an external tool via Web Services.

Our needs is that when on the system "A" (NetworkMonitoring) is fired a special event a new Ticket is opened in the system "B" (OTRS)
The system "A" can send request via SOAP and we don't have problem when to call the WS but we have problem for authenticate the user and we don't understand where could be located the problem.

TicketCreate.AuthFail (2014-09-08 10:29:26, error)
TicketCreate: User could not be authenticated!


The user that we are using is an OTRS Agent and also OTRS Customer. The password is the same and he can log in the system correctly.

Any Idea ?
OTRS in several version starting from 3.0

Production Environment
OTRS 4.0.5 - Postgres9.3
ITSM, KIX4OTRS, FAQ,SURVEY
OS RedHat 6.4

Auth: Ldap - CAS - DB
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Webservices-TicketCreate:User could not be authenticated

Post by crythias »

I can't really be of help here. Authentication failed means authentication failed. Try other credentials?
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
ciotola
Znuny newbie
Posts: 35
Joined: 27 Apr 2012, 13:56
Znuny Version: 3.2.9 /3.3 / 4.0.5
Real Name: Giampiero
Company: Atos
Location: Roma - IT

Re: Webservices-TicketCreate:User could not be authenticated

Post by ciotola »

Also with other credentials we have the same error.
two ways :
1) We have everithing under https ... should be a problem?
2) Is it possible that is an OTRS Bug on the "nph-genericinterface.pl"

tks for the help :)
OTRS in several version starting from 3.0

Production Environment
OTRS 4.0.5 - Postgres9.3
ITSM, KIX4OTRS, FAQ,SURVEY
OS RedHat 6.4

Auth: Ldap - CAS - DB
ciotola
Znuny newbie
Posts: 35
Joined: 27 Apr 2012, 13:56
Znuny Version: 3.2.9 /3.3 / 4.0.5
Real Name: Giampiero
Company: Atos
Location: Roma - IT

Re: Webservices- TicketCreate:User could not be authenticate

Post by ciotola »

Issue solved.
We are using CAS for the single Sign On with for manage the user and the access. A little change in the CAS configuration and everything was working.
OTRS in several version starting from 3.0

Production Environment
OTRS 4.0.5 - Postgres9.3
ITSM, KIX4OTRS, FAQ,SURVEY
OS RedHat 6.4

Auth: Ldap - CAS - DB
guidoms
Znuny newbie
Posts: 4
Joined: 12 Nov 2014, 16:40
Znuny Version: 4.0.6

Re: Webservices- TicketCreate:User could not be authenticate

Post by guidoms »

ciotola wrote:Issue solved.
We are using CAS for the single Sign On with for manage the user and the access. A little change in the CAS configuration and everything was working.
Can you share your integration code with Zabbix? We also trying this...

Thanks!
Locked