Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AdImporter doesn’t work with PHP 8+ #113

Open
xrisk opened this issue Aug 4, 2023 · 0 comments
Open

AdImporter doesn’t work with PHP 8+ #113

xrisk opened this issue Aug 4, 2023 · 0 comments

Comments

@xrisk
Copy link

xrisk commented Aug 4, 2023

AdImporter doesn’t work with PHP 8. I believe this is because ldap_control_paged_result has been removed.

Crash log:

www-data@c19612712e81:~/html$  php -f /var/www/html/occ cas:import-users-ad -vvv -d 1 -c 1
Start account import from ActiveDirectory.
[info] AD connected successfully.
1d7b2a89[info] AD bound successfully.
[info] Init complete.
[info] Getting all users from the AD …
An unhandled exception has been thrown:
Error: Call to undefined function OCA\UserCAS\Service\Import\ldap_control_paged_result() in /var/www/html/custom_apps/user_cas/lib/Service/Import/AdImporter.php:277
Stack trace:
#0 /var/www/html/custom_apps/user_cas/lib/Service/Import/AdImporter.php(129): OCA\UserCAS\Service\Import\AdImporter->getLdapList('ou=Users,dc=iii...', '(&(objectClass=...', Array, '751')
#1 /var/www/html/custom_apps/user_cas/lib/Command/ImportUsersAd.php(105): OCA\UserCAS\Service\Import\AdImporter->getUsers()
#2 /var/www/html/3rdparty/symfony/console/Command/Command.php(255): OCA\UserCAS\Command\ImportUsersAd->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#3 /var/www/html/3rdparty/symfony/console/Application.php(1009): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#4 /var/www/html/3rdparty/symfony/console/Application.php(273): Symfony\Component\Console\Application->doRunCommand(Object(OCA\UserCAS\Command\ImportUsersAd), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#5 /var/www/html/3rdparty/symfony/console/Application.php(149): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#6 /var/www/html/lib/private/Console/Application.php(211): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#7 /var/www/html/console.php(100): OC\Console\Application->run()
#8 /var/www/html/occ(11): require_once('/var/www/html/c...')
#9 {main}

PHP version: 8.0.28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant