You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm working on a new installation of osTicket v1.10 and found an issue with the current version of the auth-ldap plugin, v0.6.3. In the new ticket screen, the LDAP plugin doesn't return any results for remote users. I get this error in my Apache log:
[Fri Dec 02 16:19:47 2016] [error] [client x.x.x.x] PHP Fatal error: Uncaught exception 'OrmException' with message 'Union queries must have matching values counts' in /var/www/html/osticket/include/class.orm.php:1283
Stack trace:
#0 /var/www/html/osticket/include/ajax.users.php(90): QuerySet->union(Object(QuerySet))
#1 [internal function]: UsersAjaxAPI->search()
#2 /var/www/html/osticket/include/class.dispatcher.php(145): call_user_func_array(Array, Array)
#3 /var/www/html/osticket/include/class.dispatcher.php(38): UrlMatcher->dispatch(false, Array)
#4 /var/www/html/osticket/include/class.dispatcher.php(120): Dispatcher->resolve(false, Array)
#5 /var/www/html/osticket/include/class.dispatcher.php(38): UrlMatcher->dispatch('/users', NULL)
#6 /var/www/html/osticket/scp/ajax.php(262): Dispatcher->resolve('/users')
#7 {main}
thrown in /var/www/html/osticket/include/class.orm.php on line 1283, referer: http://svvm-helpdesk/osticket/scp/tickets.php?a=open
I was able to comment out the offending block of code in ajax.users.php from lines 84-91 and now my LDAP search does return results, albeit there are duplicates if a local user already exists. I didn't have time to chase it any further. I'm hoping someone more familiar with this code will be able to fix it properly and quickly.
The text was updated successfully, but these errors were encountered:
Turns out my duplicate results were from a case mismatch. If the case matches, the duplicate results do get filtered and there's no difference between my solution of removing the entire block and the solution in #3456 of removing only the one line. I'll close this since it appears the other one fixes the issue.
Hi, I'm working on a new installation of osTicket v1.10 and found an issue with the current version of the auth-ldap plugin, v0.6.3. In the new ticket screen, the LDAP plugin doesn't return any results for remote users. I get this error in my Apache log:
I found somebody else with a similar error here: osTicket/osTicket-plugins#105
I was able to comment out the offending block of code in ajax.users.php from lines 84-91 and now my LDAP search does return results, albeit there are duplicates if a local user already exists. I didn't have time to chase it any further. I'm hoping someone more familiar with this code will be able to fix it properly and quickly.
The text was updated successfully, but these errors were encountered: