We are currently testing osTicket in our environment along with AD and the ldap plugin. In our domain environment we have child domains and the plugin doesn't seem to do referral chasing on authentications and the child domain logins are not authenticating.

I was looking at the source for the plugin and in authentication.php line 146 it looks like referrals is turned off. 'LDAP_OPT_REFERRALS' => 0,

I want to change that to a 1.

When I initially setup the auth-ldap plugin I used the phar file so I tried to modify the code and pull it into the plugins directory removing the .phar file and got a 500 server error when trying to configure it. I don't know if this is because I need to recompile to a phar file or something else. When trying to compile the phar from the readme the command executes, but no .phar file is generated.

Any ideas?

the plugin does not need to be a phar file to work. I unphared mine years ago and run with it that way. [so I can modify for the code if I need to.] that being said if you have it configured it is expecting the .phar. You would need to alter the data in the ost_plugin table to not expect a phar (see isphar column) or uninstall the plugin. Then re-install it as a non-phar.

13 days later

Thanks for the information. I kept getting a 500 error when pulling the plugins off of github. Extracting the phar instead seemed to work.

Plugins on github can't be pulled and used... unless you follow the instructions to hydrate them. They aren't complete.
(see the plugin repo instructions regarding Installing / Building Plugins on that repo).

Your best bet is to get the .phar files from osticket.com/download and using them as .phar files, or extracting those files.

I'm glad to hear that extracting the .phar seems to have worked. Shall I mark this as resolved and close the thread?

Write a Reply...