Quantcast
Channel: Recent Discussions on osTicket Forums
Viewing all 7550 articles
Browse latest View live

IIS, SSO and normal-login, no Public Registration with Automatic User Creation on Login

$
0
0
My setup is Windows Server 2012 R2 with IIS 8.5 which hosts the osTicket install and my authentication back-end is a Microsoft Active Directory accessed via LDAP using the "LDAP Authentication and Lookup" plugin. SSO on osTicket is also enabled through the "HTTP Passthru Authentication" plugin. The IIS site hosting the osTicket installation should have "Anonymous Authentication" enabled and "Windows Authentication" enabled and configured (Providers, Kernel-mode protection etc. needs to be configured as per your own situation). You should have setup at least this far, if you don't know how to get this far this guide is not for you.

The goal in my use-case was to support both normal authentication (Through osTicket login form, or as far as IIS is concerned, "Anonymous Authentication") but also support Windows Authentication for clients which support it. Those logging in using either method should be authenticated against the authentication backend (AD via LDAP) and if an osTicket user account does not exist for that backend user, automatically create it.

IIS cannot support both Anonymous Authentication and Windows Authentication in the same request, so we have to do some permission and redirection trickery. osTicket also still doesn't have a mode which is essentially private (no public registration) but still honours account creation requests from the authentication backend, so we will have to implement that too (easier than you think).

Concept: Force Windows Authentication
Essentially, we create a file (In my example, a PHP script) which just redirects the user back to the home page. We change the supported authentication methods on this redirection file to just support Windows Authentication, disabling Anonymous Authentication. It's important that this redirection script is in the root of the osTicket installation. What this will do is it will force the client to do Windows Authentication over Anonymous Authentication than redirect them back to the osTicket installation as normal and the client will still continue to use Windows Authentication for all additional requests (except SCP).

The only problem is anyone that you wish to force Windows Authentication on will need to go through this entry point (the redirection script) or else Windows Authentication won't work and you'll just be presented with the osTicket login form as normal (Seeing as it'll use IIS "Anonymous Authentication") but, at least for my situation, I had control over said clients and simply pushed our bookmarks/favourites which pointing at the correct entry point. Other clients, ones without Windows Authentication, would simply use the website as normal and not use or see that entry point at all. I've been told this technique is not honoured on all browsers that support Windows Authentication and IIS configuration regarding authentication that differs from default can also impact it, you'll have to do your own testing.

Concept: Automatic User Creation
We create a new Registration Method
(I say new but there are already preliminary traces of such a method already existing)
and then adjust some checks for the public user registration links and
access to them.

Step 1: Create Redirection File
There are many different ways to do this but the principle remains the same. Create the script and ensure it redirects your Windows Authenticated users to where you want to go (Eg: home, open ticket etc.)
An example:
<?php
$url = 'https://examplesupport.local/';
?>
<html>
<head>
    <title>Redirecting...</title>
    <meta http-equiv="refresh" content="0;url='<?php echo $url; ?>'" />
</head>
<body>
    <p><a href="<?php echo $url; ?>">Redirecting...</a></p>
</body>
</html>


Step 2: Change supported Authentication methods on Redirection File
We go to Content View in IIS Manager under the IIS Site that has our osTicket installation and select this redirection script,
going back to Feature View and disabling "Anonymous Authentication",
leaving only "Windows Authentication" enabled.

Step 3: Change PHP code
  • include/staff/settings-access.inc.php
  • Add "auto" to 'client_registration' options.
    'auto' => __('Auto — Only backend can register users'),
include/client/accesslink.inc.php
  • Change:
    if ($cfg && $cfg->isClientRegistrationEnabled())
    to
    if ($cfg && $cfg->getClientRegistrationMode() === 'public')
include/client/login.inc.php
  • Change:
    if ($cfg && $cfg->isClientRegistrationEnabled())
    to
    if ($cfg && $cfg->getClientRegistrationMode() === 'public')
include/client/view.inc.php
  • Change:
    if ($cfg && $cfg->isClientRegistrationEnabled())
    to
    if ($cfg && $cfg->getClientRegistrationMode() === 'public')
account.php
  • Change:
    if (!$cfg || !$cfg->isClientRegistrationEnabled())
    to
    if(!$cfg || $cfg->getClientRegistrationMode() !== 'public')
  • This is for security.
Step 4: Change Registration Method
Login to osTicket as an administrator user and change the registration method to the one we just added ('auto')

Testing
  1. Go to the root of osTicket (normal location) with a browser that is not configured for Windows Authentication and try logging in (using a user which does not already exist in osTicket) using the normal osTicket form.
  2. Go to the root of osTicket (normal location) with a browser that is not
    configured for Windows Authentication and try logging in (using a user
    which already exists in osTicket) using the normal osTicket
    form.
  3. Go to the Windows Authentication entry point (that redirection script) with a browser that supports Windows
    Authentication (using a user which does not already exist in osTicket) and go to the open ticket form, you should not be asked to login.
  4. Go to the Windows Authentication entry point (that redirection script) with a browser that supports Windows
    Authentication (using a user
    which already exists in osTicket) and go to the open ticket form, you should not be asked to login.
  5. Attempt to go to the following URLs and ensure you are redirected:
  6. /account.php?do=create
I could never get SSO working with SCP, sorry. I'm not using this in a production setup so far, only with test users.


Error page after post in a task v1.11.0-rc1

$
0
0
After posted in an existing task i get a error page.
I am using v1.11.0-rc1 but i couldn't find a possibility to give feedback on it

Vista de tickets abiertos

$
0
0
Es posible modificar los campos que se muestran el la vista de los tickets abiertos, https://ibb.co/fxNCWo

Quisiera poner uno de los campos personalizados que tengo de mi formulario.

gracias


Additional export column v1.11-rc1

$
0
0
First of all I would like to let you know I really like the improvements in v1.11.
However I have one suggestion. What I would like to see is an additional column for exporting tickets to CSV which will show the SLA plan name, now only the due date is a possibility. This would make my reporting a lot easier.

Thanks in advance, and keep up the good work.

Improve "tasks"

$
0
0
Hy,

- You could create a simple calendar with all tasks on it to see when they are planified --> by Agent
- To give possibility to connect a task to a ticket !!! Or a few tasks to a ticket !!
- To give possibility to custom tasks form, like ticket form... and so statuses.

Assign ticket to agent not working

$
0
0

tried to assign a ticket to agent and I am getting following error, its like blank page its not showing anything.



Agent as relationship manager?

$
0
0
We need to have some agents act as relationship managers for tickets - the tickets are first assigned to them, and then they assign it to other departments. When the responsible department resolves the ticket, it is assigned back to the RM to reply to the user.

This would mean that the RM would have an overview of all of "their" tickets, even after they are assigned to other agents/teams.

One solution is changing the owner of the ticket from the actual user to an internal agent-user, and then changing it back to the actual user before final reply. However, this is too complicated.

Did anyone else have the same requiremend and managed to solve it?


PHP Fatal error: Call to a member function getState() after upgrade

$
0
0
Hi Team,

OS Ticket version : osTicket-v1.11.0-rc1
Web Server Software Apache/2.4.33 (Win32) OpenSSL/1.0.2n PHP/5.6.35 
MySQL Version 10.1.31 
PHP Version 5.6.35

We have upgraded our server from osTicket-v1.9.12 to osTicket-v1.11.0-rc1.

after upgrade it was showing error DB Error #1146  'ost.ost_user__cdata' doesn't exist
 
[SELECT A1.`id`, A1.`name`, A6.`address` FROM `ost_user` A1 LEFT JOIN `ost_user_email` A2 ON (A1.`id` = A2.`user_id`) LEFT JOIN `ost_organization` A3 ON (A1.`org_id` = A3.`id`) LEFT JOIN `ost_user_account` A4 ON (A1.`id` = A4.`user_id`) LEFT JOIN `ost_user__cdata` A5 ON (A1.`id` = A5.`user_id`) LEFT JOIN `ost_user_email` A6 ON (A1.`default_email_id` = A6.`id`) WHERE A2.`address` LIKE '%navneet%' OR A1.`name` LIKE '%navneet%' OR A3.`name` LIKE '%navneet%' OR A4.`username` LIKE '%navneet%' OR A5.`phone` LIKE '%navneet%' LIMIT 25] Table 'ost.ost_user__cdata' doesn't exist

 ---- Backtrace ----
 #0 D:\xampp\htdocs\upload\include\mysqli.php(199): osTicket->logDBError('DB Error #1146', '[SELECT A1.`id`...')
 #1 D:\xampp\htdocs\upload\include\class.orm.php(3404): db_query('SELECT A1.`id`, ...', true, true)
 #2 D:\xampp\htdocs\upload\include\class.orm.php(3460): MySqlExecutor->execute()
 #3 D:\xampp\htdocs\upload\include\class.orm.php(2040): MySqlExecutor->getRow()
 #4 D:\xampp\htdocs\upload\include\class.orm.php(2013): FlatArrayIterator->{closure}()


we export 'ost.ost_user__cdata' table from fresh installation and import to this server. then error message changed

PHP Fatal error:  Call to a member function getState() on string in D:\\xampp\\htdocs\\upload\\include\\class.ticket.php on line 498, referer: http://172.16.5.88/upload/scp/tickets.php?a=open&uid=118


Kindly help.


Order by - Problem ?

$
0
0
osticket v1.10.4

Hy,

I have a problem in tickets list, in "open ticket". I have like choice :
"récemment mis à jour"
"récemment mis à jour"
"récemment mis à jour"
"date d'échéance"
"date d'échéance"

And each choice gives different result...

OpenID Authentication for Microsoft in osTicket

$
0
0

Initial Release - 2018-03-29

Version .1

  • Implementation of Open ID authentication for osTicket.
  • Tested with personal and work accounts
  • Tested on LAMP stack with PHP 7.0.28, osTicket v1.10.1
  • Tested on LEMP stack with PHP 7.2.3-1, osTicket v1.10.1
  • osTicket on LEMP requires additional rewrite rules. This recipe is a good starting point. You'll want to change the following:
  • location ~ ^/api/(?:tickets|tasks).*$ {
    try_files $uri $uri/ /api/http.php?$query_string;
    }
to:
  • location ~ ^/api/(?:tickets|tasks|auth).*$ {
    try_files $uri $uri/ /api/http.php?$query_string;
    }
osTicket has other issues with PHP 7.2Configuration options for auth URL, endpoint, scope, client ID (application ID), and secret
Additional options for domain whitelists on staff and client logins, enabling the plugin separately on staff and client logins, plus hiding the local login sections.
  • Hiding the local logins allows for public registration to be enabled so that accounts don't have to be created in advance 
Install - Upload the phar file to your osTicket/include/plugins directory.
image

Custom Columns & Custom Queues (Admin)

FLAG e-mail as answered on IMAP SERVER

$
0
0
Hi there, i setted os Ticket globally and it's working well. But i setted the IMAP server because i can see the flag ANSWERED from my mail client.
The problem is that if i answer to a ticket it's not flagged as ANSWERED and i can't monitor question and answer from thunderbird (for example).
What's the problem?
Thanks for help.


Best regards

Filtering with regex not working

$
0
0
Hi there, i'm trying to exclude all email that arrives on my IMAP server and marking it as resolved.
I'm using the "Does not Match Regex" with the "Set ticket status " to Resolved.
the ideal behaviour is that only email that contains determined words should be open as ticket. The others should be closed or resolved.
My regex is
"/((consulta)|(enquiry)|(frage)|(information)|(petici)|(rechnung)|(richiesta)|(solicitud))/gi"

but obviously it's not working.
How can i manage to build?

thanks

Planned release for API improvements

$
0
0
Thanks for creating a great ticketing system.  My team uses it extensively and loves it.

One thing that would improve osTicket for key use cases would be an expansion of the API functionality for tickets.

Would someone be able to tell me when the API improvements linked below expected to be released?:


Thanks in advance

(EMPTY)

$
0
0
Please remove this topic. Sorry for your trouble.

Sudden Memory Exhausted after 8 years of OST

$
0
0
Hello,

I am using OST for my business the last 8 years without any problems. But recently we started to get blanc pages, it's occurring more often every day.

After a bit of investigation it's seems to be because a lack of memory: PHP Fatal error:  Allowed memory size of 1026457 bytes exhausted (tried to allocate 100245 bytes).

Now some bits of info:

OSTicket v1.10
PHP 7.0.22
Memory limit 256
Server RAM 8GB
(What other kind of info do we need here?)

What I don't really understand is that the PHP error is not asking for a whole lot of memory, so how come we are getting this error?

I did not manage to solve this problem, and it's driving me and my co-workers crazy.
Can anyone please give me some pointers?

Thanks a lot!

Debian8-Upgrading 1.9.12 -> 1.10.4

$
0
0
So I am currently having issues moving from 1.9 to 1.10. I tried following a few different instructions couldn't get it to upgrade. Not sure what to do next.  I have tried rebooting. Next, I set my set to offline mode, made sure I had a backup, then downloaded the upgrade, next extracted/moved it to the osticket. Last I reboot my server after I was done and switched it back to online mode. But it stayed on 1.9 note sure what I am doing wrong. 

ticket print

$
0
0
Good day everyone!

I need to print ticket in custom form, is it posible? Thanks!

How to prevent duplicate tickets and threads

$
0
0
Since around March of this year our osTicket system started posting duplicate tickets and duplicate threads.

I've tried everything method I know of to troubleshoot and identity where and why this is occurring.  I've even implemented a catch condition to check the db tables prior to inserting tickets and threads to see if the contents of the $vars[]'s match what is already in the DB tables.

No success to solve this problem whatsoever.

I've Googled it and see where this issue has been in existence and dates back a number of years.

Does any one have a solution on how to stop osTicket from consistently creating ducpliate tickets and threads?

Organization filter

$
0
0
Hello everyone

I use osTicket for a multi customer it support service. I modified a bit to add a per-customer ticket count at the top of ticket list, and on previous versions of osTicket I was able to add a Link filter for each customer tickets, but with the new redefined code I just can’t find a way.

What I’ve always done is to have: CUSTOMERA: 5, CUSTOMERB: 7, CUSTOMERC: 2
and the word “CUSTOMERA” is a link with GET parameters so I can filter open tickets fo a certain customer with a single click.

Any hint?
Viewing all 7550 articles
Browse latest View live