This issue still persists. I have downloaded the latest LDAP Authentication and Lookup plugin from here -- https://osticket.com/download -- and dropped it in my /var/www/osticket/upload/include/plugins folder.
This is happening on both a RHEL8 VM and a RHEL7 VM. Below is the full stack trace.
What am I missing here?
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
Stack trace:
#0 phar:///var/www/osticket/upload/include/plugins/auth-ldap.phar/include/Net/LDAP2/Entry.php(367): ldap_first_attribute()
#1 phar:///var/www/osticket/upload/include/plugins/auth-ldap.phar/include/Net/LDAP2/Entry.php(179): Net_LDAP2_Entry->setAttributes()
#2 phar:///var/www/osticket/upload/include/plugins/auth-ldap.phar/include/Net/LDAP2/Entry.php(242): Net_LDAP2_Entry->construct()
#3 phar:///var/www/osticket/upload/include/plugins/auth-ldap.phar/include/Net/LDAP2/Search.php(190): Net_LDAP2_Entry::createConnected()
#4 phar:///var/www/osticket/upload/include/plugins/auth-ldap.phar/include/Net/LDAP2/RootDSE.php(81): Net_LDAP2_Search->shiftEntry()
#5 phar:///var/www/osticket/upload/include/plugins/auth-ldap.phar/include/Net/LDAP2.php(1505): Net_LDAP2_RootDSE::fetch()
#6 phar:///var/www/osticket/upload/include/plugins/auth-ldap.phar/include/Net/LDAP2/Schema.php(136): Net_LDAP2->rootDse()
#7 phar:///var/www/osticket/upload/include/plugins/auth-ldap.phar/include/Net/LDAP2.php(1563): Net_LDAP2_Schema::fetch()
#8 phar:///var/www/osticket/upload/include/plugins/auth-ldap.phar/include/Net/LDAP2/Entry.php(360): Net_LDAP2->schema()
#9 phar:///var/www/osticket/upload/include/plugins/auth-ldap.phar/include/Net/LDAP2/Entry.php(179): Net_LDAP2_Entry->setAttributes()
#10 phar:///var/www/osticket/upload/include/plugins/auth-ldap.phar/include/Net/LDAP2/Entry.php(242): Net_LDAP2_Entry->construct()
#11 phar:///var/www/osticket/upload/include/plugins/auth-ldap.phar/include/Net/LDAP2/Search.php(190): Net_LDAP2_Entry::createConnected()
#12 phar:///var/www/osticket/upload/include/plugins/auth-ldap.phar/include/Net/LDAP2/RootDSE.php(81): Net_LDAP2_Search->shiftEntry()
#13 phar:///var/www/osticket/upload/include/plugins/auth-ldap.phar/include/Net/LDAP2.php(1505): Net_LDAP2_RootDSE::fetch()
#14 phar:///var/www/osticket/upload/include/plugins/auth-ldap.phar/include/Net/LDAP2.php(620): Net_LDAP2->rootDse()
#15 phar:///var/www/osticket/upload/include/plugins/auth-ldap.phar/include/Net/LDAP2.php(444): Net_LDAP2->startTLS()
#16 phar:///var/www/osticket/upload/include/plugins/auth-ldap.phar/include/Net/LDAP2.php(339): Net_LDAP2->performConnect()
#17 phar:///var/www/osticket/upload/include/plugins/auth-ldap.phar/config.php(189): Net_LDAP2->bind()
#18 /var/www/osticket/upload/include/class.plugin.php(77): LdapConfig->pre_save()
#19 /var/www/osticket/upload/include/class.plugin.php(67): PluginConfig->commitForm()
#20 /var/www/osticket/upload/scp/plugins.php(13): PluginConfig->commit()
#21 {main}
thrown in phar:///var/www/osticket/upload/include/plugins/auth-ldap.phar/include/Net/LDAP2/Entry.php on line 367