Package: gosa
Version: 2.8~git20230203.10abe45+dfsg-1+deb12u2
Severity: normal

Dear Maintainer,

thank you for maintaining gosa!

I just run the web-based setup procedure of gosa in Debian Bookworm.
Quite early I received the following error:

PHP Fatal error:  Uncaught TypeError: ldap_get_entries(): Argument #2 ($result) 
must be of type LDAP\\Result, bool given in 
/usr/share/gosa/include/\nStack trace:\n#0 
/usr/share/gosa/include/ ldap_get_entries()\n#1 
LDAP::get_naming_contexts()\n#2 /usr/share/gosa/setup/ 
Step_Ldap->execute()\n#3 /usr/share/gosa/setup/ 
setup->execute()\n#4 /usr/share/gosa/html/setup.php(123): 
require_once('...')\n#5 {main}\n  thrown in 
/usr/share/gosa/include/ on line 1525, referer:

According to the environment settings visible in the apache2 log, the
culprit seems to be the assumption, that a local LDAP server is

  ldap_connect_to_host: TCP localhost:389

Maybe the setup procedure does not deal with a remote LDAP server gracefully?

My workaround was a temporary `ssh -R ...` port forwarding between the
remote LDAP server and the local host running gosa.
The following setup screen allowed me to configure the real LDAP URI.

Thanks for your time,

Reply via email to