I am running IIS10 / PHP8.0.16 and recently got a similar LDAP error (See below). A restart of IIS and I was good to again. Thought I'd post this just in case it's of value to the DEV team.
[02-Mar-2022 16:15:18 UTC] PHP Fatal error: Uncaught Error: Call to a member function bind() on null in phar://C:/inetpub/wwwroot/osTicket/include/plugins/auth-ldap.phar/authentication.php:223
Stack trace:
#0 phar://C:/inetpub/wwwroot/osTicket/include/plugins/auth-ldap.phar/authentication.php(430): LDAPAuthentication->authenticate()
#1 C:\inetpub\wwwroot\osTicket\include\class.auth.php(249): StaffLDAPAuthentication->authenticate()
#2 C:\inetpub\wwwroot\osTicket\scp\login.php(71): AuthenticationBackend::process()
#3 {main}
thrown in phar://C:/inetpub/wwwroot/osTicket/include/plugins/auth-ldap.phar/authentication.php on line 223
[02-Mar-2022 16:15:18 UTC] PHP Fatal error: Uncaught TypeError: ldap_close(): Argument #1 ($ldap) must be of type resource, bool given in phar://C:/inetpub/wwwroot/osTicket/include/plugins/auth-ldap.phar/include/Net/LDAP2.php:701
Stack trace:
#0 phar://C:/inetpub/wwwroot/osTicket/include/plugins/auth-ldap.phar/include/Net/LDAP2.php(701): ldap_close()
#1 C:\inetpub\wwwroot\osTicket\include\pear\PEAR.php(755): Net_LDAP2->_Net_LDAP2()
#2 [internal function]: _PEAR_call_destructors()
#3 {main}
thrown in phar://C:/inetpub/wwwroot/osTicket/include/plugins/auth-ldap.phar/include/Net/LDAP2.php on line 701