Error if the admin DN is not correct when the setup
Description
If the admin DN is incorrect when we click on verify we have that
Fatal error: Uncaught TypeError: Return value of setupStepLdap::check() must be of the type array, none returned in /usr/share/fusiondirectory/setup/class_setupStepLdap.inc:222 Stack trace: #0 /usr/share/fusiondirectory/setup/class_setup.inc(108): setupStepLdap->check() #1 /usr/share/fusiondirectory/setup/class_setup.inc(308): setup->save_object() #2 /usr/share/fusiondirectory/html/setup.php(104): setup::mainInc() #3 {main} thrown in /usr/share/fusiondirectory/setup/class_setupStepLdap.inc on line 222
Distribution Name and Version
Centos 7
FusionDirectory Version
1.4
PHP version used
7
Origin of php packages
Remi repo
Steps to Reproduce
- Setup FD
- Insert a wrong admin DN like "cn=admin,dc=nodomain instead of cn=Manger,dc=mydomain)
Expected behavior:
No php errors
Actual behavior:
There is a php error
Reproduces how often: 100