Can't access OTRS webservice [SOLVED]

Moderator: crythias

Post Reply
valowl
Znuny newbie
Posts: 3
Joined: 02 Jul 2020, 16:53
Znuny Version: 6.0.29
Real Name: Xen

Can't access OTRS webservice [SOLVED]

Post by valowl »

Hello everyone,

we're trying to connect an application to OTRS; unfortunately, every time OTRS throws 401 error or, in Postman, shows a login page. I have admin access, I tried every combination in the url ("https://server/otrs/nph-genericinterfac ... /user/pass" - developer's syntax; "https://server/otrs/nph-genericinterfac ... sword=pass"; login data in the authorization tab), but I am still getting the damn login page. I'm very new to OTRS so I'm sure I'm missing something here.

Thanks!
Last edited by valowl on 03 Jul 2020, 11:37, edited 1 time in total.
valowl
Znuny newbie
Posts: 3
Joined: 02 Jul 2020, 16:53
Znuny Version: 6.0.29
Real Name: Xen

Re: Can't access OTRS webservice

Post by valowl »

Solved itself really quickly, I needed to add /:UserLogin/:Password to the route mapping in OTRS.
root
Administrator
Posts: 3963
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Can't access OTRS webservice

Post by root »

valowl wrote: 03 Jul 2020, 11:37 Solved itself really quickly, I needed to add /:UserLogin/:Password to the route mapping in OTRS.
Why? Any specific reason for this? Please realize that your login data will by logged by default in the web server log.

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
valowl
Znuny newbie
Posts: 3
Joined: 02 Jul 2020, 16:53
Znuny Version: 6.0.29
Real Name: Xen

Re: Can't access OTRS webservice [SOLVED]

Post by valowl »

Because the app dev requires the ".../Webservice/user/password" syntax which I cannot change, that's why it didn't work in the app. In Postman it was more that I didn't realize that "nph-genericinterface.pl" wasn't a placeholder :')

- Xen
Post Reply