📜 ⬆️ ⬇️

OTRS 4.0.10. We put on Ubuntu + AD + Kerberos + SSO (Part Three)

The third part of the article on installing and configuring OTRS on UbuntuServer in MS AD. Now let's talk about the corrections of various jambs and screwing useful buns. The first two articles will not change more, and all the rest of my work will be added to this article, you get such a good wayto.

Part One: System Preparation
Part Two: Installing and Configuring OTRS
Part three: fix the shoals fasten buns


')

We fix localization jambs


In the interface of the bush meter there is a kosyachek, on the exit button instead of the user name there is% c% c, that means something like “Exit% s% c”. It is fixed very easily. Open the file /opt/otrs/Kernel/Language/en.pm :
mcedit /opt/otrs/Kernel/Language/ru.pm

We find the string “% c% c” (note the Russian symbol), if it doesn't work out, then the line number is 3070, and change “% c% c” to “% s% s”. Save and everything is ok.

Nice bun â„–1. FAQ module.


I think it is not necessary to explain how useful this module is in such a system.
For bush-growers here you can make all sorts of instructions and answers to frequently asked questions, and for agents some kind of knowledge base with reminders. In short, anything at your choice. This bun is put nowhere.
Go to the OTRS website in the public download section.
Choose Public Extensions -> OTRS 4 -> FAQ and download the package with our module.
Go to the admin area of ​​OTRS -> System Administration -> Package Management.
Click the "Browse" button and select the file of the newly downloaded package, click install.

Error may pop up:


This is corrected by editing the /etc/otrs/Kernel/Config.pm file.
find the SecureMode parameter in it and change its value to 1, if there isn’t, then manually append it as in the picture


That's all, how to add articles and distribute access to them will not tell, there are no options and everything is done the only way to information on which the network shaft.

Nice bun â„–2. IPhoneHandle module.


What kind of animal is this, and this animal allows you to fasten mobile agents' agents to OTRS and work with the system directly from them, receive applications, answer them and close right on the phone, an invaluable bun for a sanatorium with 100% waffle coating and a huge tent of sanitary ware; electricians and other engineers.
The OTRS documentation says (and it’s also clear from the name) that this module is written for iPhone and the official client is only for iPhone.
But as it turned out, third-party craftsmen had long ago parted the protocol and signed clients for other platforms. Yes, and you will agree it would be strange if the plumber carried an iPhone with him in his pocket. Under the Android, there are even two, to choose from, this is DSHelpdesk (there is a paid version of this application) and just the Help desk .
And so, we put the module.
We download it all from the same place as the previous one (I will not give the link again).
We select at the last stage the corresponding module, we put it in the same way as the previous module. The installation field in the / opt / otrs / bin / cgi-bin / folder should appear json.pl file, if it appears, it means everything is OK, the module got up successfully.

Next, we put the application you like and the ones listed above and try to hook onto the OTRS iiiii server (if you did the setup according to my instructions) it wasn’t there, it wouldn’t work right away. And all because the json.pl module is not friends with any authorization other than authorization from the OTRS DB itself. Therefore, we stamp into /opt/otrs/Kernel/Config.pm and immediately after the authorization block AD we add another back-end authorization block to the DB.
It should look like this:

 #       LDAP# $Self->{'AuthModule::LDAP::AlwaysFilter'} = ''; $Self->{'AuthModule::LDAP::Params'} = { port => 389, timeout => 120, async => 0, version => 3, sscope => 'sub' }; #   LDAP    # #   -     # $Self->{'AuthModule1'}='Kernel::System::Auth::DB'; #      LDAP # #     LDAP # $Self->{'AuthSyncModule'} = 'Kernel::System::Auth::Sync::LDAP'; 


To make it clearer, we inserted these lines:

 #   -     # $Self->{'AuthModule1'}='Kernel::System::Auth::DB'; 


We'll try to catch the iiii, no way again, and if you choose the DSHelpdesk device for your mobile device, the program will also crash with an error.
The problem is that the mobile client does not understand what Kerberos authentication is, and Apache2 valiantly requires authorization when trying to access the / opt / otrs / bin / cgi-bin directory and the json.pl file as well. Therefore, it is necessary to explain to the Apache that in order to access this file, authorization is not necessary, and for this you have to edit the virtual host settings file /etc/apache2/sites-enabled/otrs.conf and add one more small block to it

  <Location /otrs/json.pl> ErrorDocument 403 /otrs/json.pl SetHandler perl-script PerlResponseHandler ModPerl::Registry Options +ExecCGI PerlOptions +ParseHeaders PerlOptions +SetupEnv Require all granted Satisfy Any </Location> 


I added immediately after the first Location block immediately after the tag
 </Location> 


Now familiar already

 service apache2 reload service apache2 restart 


And we try to log in from the mobile client again, and if you did everything correctly, then the authorization will succeed and we will see the requests sorted by folders according to statuses.

Fix shoals

The module works fine, the application clings, the application is visible, but here's the problem, when you try to open the application details, the application either throws out an error and does not open anything or collapse at all. And the content of the error like this:
“No access method 'TicketFlagSet ()' from 'TicketObject'”
I searched for an answer for a long time until I read the description of one of the applications right in the Play-Market.
It turned out to be solved simply. Go to the admin panel of OTRS: System Administration -> System Configuration -> in the drop-down menu, select iPhoneHandle -> API
Find the parameter
iPhone :: API :: Object ### TicketObject
And erase everything that is there, click "Send" at the bottom of the page and voila, everything works the way it should and the application in the mobile application opens with details and no errors.

Source: https://habr.com/ru/post/265541/


All Articles