Re-download and re-install the latest plugin from our website. We had issues with the new downloader and it wasn't downloading the correct version.
Cheers.
Re-download and re-install the latest plugin from our website. We had issues with the new downloader and it wasn't downloading the correct version.
Cheers.
I redownloaded it, but am still having the same problem after disabling the plugin, deleting it, re-installing, and re-configuring. Though, the error is different now:
[Fri Jun 24 12:29:52.871366 2022] [php:error] [pid 36521] [client 192.168.1.2:50211] PHP Fatal error: Uncaught ArgumentCountError: ldap_first_attribute() expects exactly 2 arguments, 3 given in phar:///var/www/html/osTicket/include/plugins/auth-ldap.phar/include/Net/LDAP2/Entry.php:367\nStack trace:\n#0 phar:///var/www/html/osTicket/include/plugins/auth-ldap.phar/include/Net/LDAP2/Entry.php(367): ldap_first_attribute()\n#1 phar:///var/www/html/osTicket/include/plugins/auth-ldap.phar/include/Net/LDAP2/Entry.php(179): Net_LDAP2_Entry->setAttributes()\n#2 phar:///var/www/html/osTicket/include/plugins/auth-ldap.phar/include/Net/LDAP2/Entry.php(242): Net_LDAP2_Entry->__construct()\n#3 phar:///var/www/html/osTicket/include/plugins/auth-ldap.phar/include/Net/LDAP2/Search.php(190): Net_LDAP2_Entry::createConnected()\n#4 phar:///var/www/html/osTicket/include/plugins/auth-ldap.phar/include/Net/LDAP2/RootDSE.php(81): Net_LDAP2_Search->shiftEntry()\n#5 phar:///var/www/html/osTicket/include/plugins/auth-ldap.phar/include/Net/LDAP2.php(1505): Net_LDAP2_RootDSE::fetch()\n#6 phar:///var/www/html/osTicket/include/plugins/auth-ldap.phar/include/Net/LDAP2/Schema.php(136): Net_LDAP2->rootDse()\n#7 phar:///var/www/html/osTicket/include/plugins/auth-ldap.phar/include/Net/LDAP2.php(1563): Net_LDAP2_Schema::fetch()\n#8 phar:///var/www/html/osTicket/include/plugins/auth-ldap.phar/include/Net/LDAP2/Entry.php(360): Net_LDAP2->schema()\n#9 phar:///var/www/html/osTicket/include/plugins/auth-ldap.phar/include/Net/LDAP2/Entry.php(179): Net_LDAP2_Entry->setAttributes()\n#10 phar:///var/www/html/osTicket/include/plugins/auth-ldap.phar/include/Net/LDAP2/Entry.php(242): Net_LDAP2_Entry->__construct()\n#11 phar:///var/www/html/osTicket/include/plugins/auth-ldap.phar/include/Net/LDAP2/Search.php(190): Net_LDAP2_Entry::createConnected()\n#12 phar:///var/www/html/osTicket/include/plugins/auth-ldap.phar/include/Net/LDAP2/RootDSE.php(81): Net_LDAP2_Search->shiftEntry()\n#13 phar:///var/www/html/osTicket/include/plugins/auth-ldap.phar/include/Net/LDAP2.php(1505): Net_LDAP2_RootDSE::fetch()\n#14 phar:///var/www/html/osTicket/include/plugins/auth-ldap.phar/authentication.php(262): Net_LDAP2->rootDse()\n#15 phar:///var/www/html/osTicket/include/plugins/auth-ldap.phar/authentication.php(193): LDAPAuthentication->getSchema()\n#16 phar:///var/www/html/osTicket/include/plugins/auth-ldap.phar/authentication.php(479): LDAPAuthentication->authenticate()\n#17 /var/www/html/osTicket/include/class.auth.php(249): ClientLDAPAuthentication->authenticate()\n#18 /var/www/html/osTicket/login.php(51): AuthenticationBackend::process()\n#19 {main}\n thrown in phar:///var/www/html/osTicket/include/plugins/auth-ldap.phar/include/Net/LDAP2/Entry.php on line 367, referer: https://helpdesk.beeblebrox.com/osTicket/login.php
I am also receiving the same error message. I have also downloaded the latest version of the LDAP plug in from the website. Deleted and completely removed the plug in but it still gives the same PHP fatal error.
AH01071: Got error 'PHP message: PHP Fatal error: Uncaught ArgumentCountError: ldap_first_attribute() expects exactly 2 arguments, 3 given in phar:///var/www/html/helpdesk/public_html/upload/include/plugins/auth-ldap.phar/include/Net/LDAP2/Entry.php:367\nStack trace:\n#0 phar:///var/www/html/helpdesk/public_html/upload/include/plugins/auth-ldap.phar/include/Net/LDAP2/Entry.php(367): ldap_first_attribute()\n#1 phar:///var/www/html/helpdesk/public_html/upload/include/plugins/auth-ldap.phar/include/Net/LDAP2/Entry.php(179): Net_LDAP2_Entry->setAttributes()\n#2 phar:///var/www/html/helpdesk/public_html/upload/include/plugins/auth-ldap.phar/include/Net/LDAP2/Entry.php(242): Net_LDAP2_Entry->__construct()\n#3 phar:///var/www/html/helpdesk/public_html/upload/include/plugins/auth-ldap.phar/include/Net/LDAP2/Search.php(190): Net_LDAP2_Entry::createConnected()\n#4 phar:///var/www/html/helpdesk/public_html/upload/include/plugins/auth-ldap.phar/include/Net/LDAP2/RootDSE.php(81): Net_LDAP2_Search->shiftEntry()\n#5 phar:///var/www/html/...', referer: https://helpdesk.shookhome.org/login.php
I have noticed that if I explicitly set the LDAP Schema to Active Directory, I get a login denial from osTicket when attempting to log in as an AD user. However, on the AD server, I see a successful logon attempt for my user.
It's still broken with autodetect.
KevinTheJedi Hi KevinTheJedi,
This is still broken with Autodetect set. I really don't know what else to do. Seems like an issue with the plugin code as something extra is being passed to a function that I'm not able to debug.
I don’t know what to tell you. We addressed this issue already with the below commit:
Either your server is caching the old plugin or you are not installing the latest version of the plugin.
Cheers.
i also installed the last plugin for 1.16.3 from the download page but still have issues.
[Thu Jul 07 12:31:08.970941 2022] [php:error] [pid 1115] [client ...:47096] PHP Fatal error: Uncaught ArgumentCountError: ldap_first_attribute() expects exactly 2 arguments, 3 given in phar:///var/www/osTicket/upload/include/plugins/auth-ldap.phar/include/Net/LDAP2/Entry.php:367\nStack trace:\n#0 phar:///var/www/osTicket/upload/include/plugins/auth-ldap.phar/include/Net/LDAP2/Entry.php(367): ldap_first_attribute()\n#1 phar:///var/www/osTicket/upload/include/plugins/auth-ldap.phar/include/Net/LDAP2/Entry.php(179): Net_LDAP2_Entry->setAttributes()\n#2 phar:///var/www/osTicket/upload/include/plugins/auth-ldap.phar/include/Net/LDAP2/Entry.php(242): Net_LDAP2_Entry->construct()\n#3 phar:///var/www/osTicket/upload/include/plugins/auth-ldap.phar/include/Net/LDAP2/Search.php(190): Net_LDAP2_Entry::createConnected()\n#4 phar:///var/www/osTicket/upload/include/plugins/auth-ldap.phar/include/Net/LDAP2/RootDSE.php(81): Net_LDAP2_Search->shiftEntry()\n#5 phar:///var/www/osTicket/upload/include/plugins/auth-ldap.phar/include/Net/LDAP2.php(1505): Net_LDAP2_RootDSE::fetch()\n#6 phar:///var/www/osTicket/upload/include/plugins/auth-ldap.phar/include/Net/LDAP2/Schema.php(136): Net_LDAP2->rootDse()\n#7 phar:///var/www/osTicket/upload/include/plugins/auth-ldap.phar/include/Net/LDAP2.php(1563): Net_LDAP2_Schema::fetch()\n#8 phar:///var/www/osTicket/upload/include/plugins/auth-ldap.phar/include/Net/LDAP2/Entry.php(360): Net_LDAP2->schema()\n#9 phar:///var/www/osTicket/upload/include/plugins/auth-ldap.phar/include/Net/LDAP2/Entry.php(179): Net_LDAP2_Entry->setAttributes()\n#10 phar:///var/www/osTicket/upload/include/plugins/auth-ldap.phar/include/Net/LDAP2/Entry.php(242): Net_LDAP2_Entry->construct()\n#11 phar:///var/www/osTicket/upload/include/plugins/auth-ldap.phar/include/Net/LDAP2/Search.php(190): Net_LDAP2_Entry::createConnected()\n#12 phar:///var/www/osTicket/upload/include/plugins/auth-ldap.phar/include/Net/LDAP2/RootDSE.php(81): Net_LDAP2_Search->shiftEntry()\n#13 phar:///var/www/osTicket/upload/include/plugins/auth-ldap.phar/include/Net/LDAP2.php(1505): Net_LDAP2_RootDSE::fetch()\n#14 phar:///var/www/osTicket/upload/include/plugins/auth-ldap.phar/include/Net/LDAP2.php(620): Net_LDAP2->rootDse()\n#15 phar:///var/www/osTicket/upload/include/plugins/auth-ldap.phar/include/Net/LDAP2.php(444): Net_LDAP2->startTLS()\n#16 phar:///var/www/osTicket/upload/include/plugins/auth-ldap.phar/include/Net/LDAP2.php(339): Net_LDAP2->performConnect()\n#17 phar:///var/www/osTicket/upload/include/plugins/auth-ldap.phar/config.php(189): Net_LDAP2->bind()\n#18 /var/www/osTicket/upload/include/class.plugin.php(77): LdapConfig->pre_save()\n#19 /var/www/osTicket/upload/include/class.plugin.php(67): PluginConfig->commitForm()\n#20 /var/www/osTicket/upload/scp/plugins.php(13): PluginConfig->commit()\n#21 {main}\n thrown in phar:///var/www/osTicket/upload/include/plugins/auth-ldap.phar/include/Net/LDAP2/Entry.php on line 367, referer: http://.../scp/plugins.php?id=2
I mentioned in another thread about the same issue that we recently changed our downloader for the website and it did have some issue so maybe there are lingering issues. We will look into this.
Cheers.
We have addressed the issue with the downloader. Please re-download, re-install the plugin, and retest.
Cheers.
Hi All,
I have similar problem on 1.17 apache and php 8.1.
We will downgrade and we notice.
Update:
After downgrade PHP to 8.0, LDAP plugin works fine.
I just had the same issue. LDAP on 1.17 would not work with PHP8.1. Downgrade to PHP8.0 fixed the problem immediately.
[Mon Nov 28 13:45:27.081667 2022] [php:error] [pid 28428] [client 172.22.1.17:57339] PHP Fatal error: Uncaught Error: Call to undefined method PEAR_Error::getValue() in phar:///var/www/osticket/include/plugins/auth-ldap.phar/authentication.php:265\nStack trace:\n#0
phar:///var/www/osticket/include/plugins/auth-ldap.phar/authentication.php(193): LDAPAuthentication->getSchema()\n#1 phar:///var/www/osticket/include/plugins/auth-ldap.phar/authentication.php(430): LDAPAuthentication->authenticate()\n#2 /var/www/osticket/include/clas
s.auth.php(341): StaffLDAPAuthentication->authenticate()\n#3 /var/www/osticket/scp/login.php(71): AuthenticationBackend::process()\n#4 {main}\n thrown in phar:///var/www/osticket/include/plugins/auth-ldap.phar/authentication.php on line 265, referer: https://FQDN/osticket/scp/login.php
[Mon Nov 28 13:58:24.191667 2022] [php:error] [pid 34483] [client 172.22.1.17:57575] PHP Fatal error: Uncaught Error: Call to a member function bind() on null in phar:///var/www/osticket/include/plugins/auth-ldap.phar/authentication.php:223\nStack trace:\n#0 phar://
/var/www/osticket/include/plugins/auth-ldap.phar/authentication.php(479): LDAPAuthentication->authenticate()\n#1 /var/www/osticket/include/class.auth.php(341): ClientLDAPAuthentication->authenticate()\n#2 /var/www/osticket/login.php(51): AuthenticationBackend::proces
s()\n#3 {main}\n thrown in phar:///var/www/osticket/include/plugins/auth-ldap.phar/authentication.php on line 223, referer: https://FQDN/osticket/login.php
[Mon Nov 28 13:58:24.191758 2022] [php:error] [pid 34483] [client 172.22.1.17:57575] PHP Fatal error: Uncaught TypeError: ldap_close(): Argument #1 ($ldap) must be of type LDAP\\Connection, bool given in phar:///var/www/osticket/include/plugins/auth-ldap.phar/includ
e/Net/LDAP2.php:701\nStack trace:\n#0 phar:///var/www/osticket/include/plugins/auth-ldap.phar/include/Net/LDAP2.php(701): ldap_close()\n#1 /var/www/osticket/include/pear/PEAR.php(755): Net_LDAP2->_Net_LDAP2()\n#2 [internal function]: _PEAR_call_destructors()\n#3 {mai
n}\n thrown in phar:///var/www/osticket/include/plugins/auth-ldap.phar/include/Net/LDAP2.php on line 701, referer: https://FQDN/osticket/login.php
had similar problem just now. php 8.1, osticket 1.17.2, ldap-auth plugin 6.2
looking at the source, it only happens when schema is set to "auto" so i set mine to posix and it worked.
the problem is failure to sentinel the return value from rootDSE. if it returns error, the error value doesn't understand getValue(), so it errors out, so needs fixin'.
hal