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

Не синхронизируется LDAP #65

Closed
funtikos opened this issue Aug 24, 2023 · 2 comments
Closed

Не синхронизируется LDAP #65

funtikos opened this issue Aug 24, 2023 · 2 comments

Comments

@funtikos
Copy link

Первичная настройка прошла успешно, но при синхронизации пишет
Exception: File: C:\xampp\htdocs\routes\contacts_sync.php[49]: ldap_parse_result return error code: , message: , ldap_error: Success Trace: #0 C:\xampp\htdocs\modules\Router.php(103): contacts_sync(Object(Core), Array, Array)
#1 C:\xampp\htdocs\pb.php(320): Router->process('contacts_sync', Array)
#2 {main}

А на экране

Response:

Warning: ldap_search() expects at most 8 parameters, 9 given in C:\xampp\htdocs\routes\contacts_sync.php on line 34



Notice: Undefined variable: controls in C:\xampp\htdocs\routes\contacts_sync.php on line 47



Warning: ldap_parse_result() expects at most 6 parameters, 7 given in C:\xampp\htdocs\routes\contacts_sync.php on line 47

{"code": 1, "message": "Exception: File: C:\xampp\htdocs\routes\contacts_sync.php[49]: ldap_parse_result return error code: , message: , ldap_error: Success Trace: #0 C:\xampp\htdocs\modules\Router.php(103): contacts_sync(Object(Core), Array, Array)\n#1 C:\xampp\htdocs\pb.php(320): Router->process('contacts_sync', Array)\n#2 {main}"}

В чем может быть проблема? Несколько версий ставил, все одна ошибка

@pfzim
Copy link
Owner

pfzim commented Aug 28, 2023

Какая версия PHP?

@pfzim
Copy link
Owner

pfzim commented Aug 28, 2023

Подозреваю, что у вас версия PHP старее чем 7.3.0.
Начиная с неё в указанные функции был добавлен дополнительный параметр: Support for controls added.
Обновите PHP.

@pfzim pfzim closed this as completed Sep 5, 2023
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

2 participants