We used this code to extract the files
<?php
try {
$pharFile = '/var/www/html/osticket/include/plugins/auth-ldap.phar';
$extractTo = '/var/www/html/osticket/include/plugins/auth-ldap_unpacked';
if (!file_exists($pharFile)) {
die("Error: PHAR file not found at " . $pharFile . "\n");
}
if (!is_dir($extractTo)) {
mkdir($extractTo, 0755, true);
}
$phar = new Phar($pharFile);
$phar->extractTo($extractTo);
echo "Successful extraction of " . $pharFile . "to " . $extractTo . ";
} catch (Exception $e) {
die("PHAR decompression error: " . $e->getMessage() . "\n");
}
?>
We've added the requested lines to the config.php file.
We renamed the auth-ldap_unpacked directory to auth-ldap
We restarted the httpd and php82-php-fpm services
We added the plugin from the admin interface.
We tried to configure the plugin from the admin interface
Still the same errors
Checking sudo journalctl -u php82-php-fpm -f gives nothing
Strangely, the plugin displays LDAP Authentication and Lookup (1) (defunct - missing) when initially the addition could have been made from the folder containing the files.
From the admin interface it cannot be deleted error 500, only deactivated.
Note the initial permissions on the auth-ldap.phar file
-rw-r--r--. 1 root root 274915 Jul 3, 11:11 auth-ldap.phar
We applied the same permissions to the auth-ldap directory by trying a chmod -R apache:apache /var/www/html/osticket/include/plugins/auth-ldap which changed nothing.