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

Uncaught Exception TypeError: ldap_read(): Argument #1 ($ldap) must be of type LDAP|array, null given in /var/www/glpi/src/RuleRightCollection.php at line 253 #18803

Closed
2 tasks done
Perrette117 opened this issue Jan 23, 2025 · 0 comments

Comments

@Perrette117
Copy link

Code of Conduct

  • I agree to follow this project's Code of Conduct

Is there an existing issue for this?

  • I have searched the existing issues

Version

10.0.17

Bug description

When i want to test my engine rules, i have an error with the memberof LDAP (what ever i type in (LDAP) MemberOf )

Image

Relevant log output

Example in php-error.log
[2025-01-23 16:06:29] glpiphplog.CRITICAL:   *** Uncaught Exception TypeError: ldap_read(): Argument #1 ($ldap) must be of type LDAP|array, null given in /var/www/glpi/src/RuleRightCollection.php at line 253
  Backtrace :
  src/RuleRightCollection.php:253                    ldap_read()
  src/RuleCollection.php:1766                        RuleRightCollection->prepareInputDataForProcess()
  src/RuleCollection.php:1921                        RuleCollection->testAllRules()
  front/rulesengine.test.php:82                      RuleCollection->showRulesEnginePreviewResultsForm()

Page URL

No response

Steps To reproduce

Do a link with your LDAP
Add user on group
Create a rule with the (LDAP) MemberOf
Test in the engine rules

Your GLPI setup information

No response

Anything else?

No response

@trasher trasher closed this as completed Jan 24, 2025
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