Call to undefined function ldap_connect()

I installed a MediaWiki on a Docker in CentOS 8. I want to integrate LDAP. I installed the LDAP extensions and activated it in the LocalSettings.php file. Now, when I try to login in my wiki I get this error:

[c04f74d86c621c5c996ce413] /index.php/Spezial:PluggableAuthLogin Error from line 244 of /var/www/html/extensions/LDAPProvider/src/PlatformFunctionWrapper.php: Call to undefined function ldap_connect()

I already tried to install PHP 7.4 and PHP-LDAP but it’s not working. I read that I have to install PHP-LDAP in the Docker container. How can I fix that?