You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, I use a self compiled php8.2-ldap extension in an php8.2 setup (Default PHP8.2 container from docker php 8.2.28-cli-bullseye) .
The following code always return the ldap error Operations error (ldap_error-code 1)
That means ldap_read and ldap_get_entriesare working.
If I use the same code from above on ubuntu using pre-compiled php8.2-ldap.so module from ubuntu repository, the code runs fine without any errors. So I can be sure, that the the credentials from $options are correct. Also an ldapsearch from command line with the same credentials and filters returns valid results.
I compile the php8.2-ldap module during docker-build phase using that code:
Description
The following code:
Hey, I use a self compiled php8.2-ldap extension in an php8.2 setup (Default PHP8.2 container from docker
php 8.2.28-cli-bullseye
) .The following code always return the ldap error
Operations error
(ldap_error-code 1)ldap_connect
andldap_bind
are working fine. It is also possible to get the base dn using the following codeblock:That means
ldap_read
andldap_get_entries
are working.If I use the same code from above on ubuntu using pre-compiled
php8.2-ldap.so
module from ubuntu repository, the code runs fine without any errors. So I can be sure, that the the credentials from$options
are correct. Also anldapsearch
from command line with the same credentials and filters returns valid results.I compile the php8.2-ldap module during docker-build phase using that code:
Resulted in this output:
But I expected this output instead:
Any idea, what's goinig on here? Did a miss a compiler-option or an package?
PHP Version
Operating System
Debian 11
The text was updated successfully, but these errors were encountered: