-
-
Notifications
You must be signed in to change notification settings - Fork 192
Description
Describe the bug
Hello! I've been learning about directory servers and installed 389 Directory Server to put it in practice, and decided to add phpLDAPadmin to better visualize and manipulate the directory. I couldn't make it run. I had two collateral issues caused by the actual problem: First I had a memory cap issue on Apache, then I had a timeout from PHP, and after solving that I finally had the stack overflow caused by the infinite recursion when fetching the schema.
I know the directory is at least reachable because CLI tools can access it, so does Apache Directory Studio and Cockpit's manager.
I don't know if it's a bug or I'm missing something during the configuration, but I couldn't find anything on the internet about this problem on PLA so either I searched the wrong way, or it's too stupid do even be asked or it's worth mentioning in the wiki.
Version of PLA
Latest container deployed (71943e7d24e5)
To Reproduce
Steps to reproduce the behavior:
- Install 389 Directory Service (I tried both via CLI and via Cockpit and got the same result)
- Initialize it with the Suffix entry
- Pull and run the container, I used the following string:
docker run -itd -v "/home/myuser/dev/phpLDAPadmin overrides/memory-limit.ini":/usr/local/etc/php/conf.d/memory-limit.ini:ro -v "/home/myuser/dev/phpLDAPadmin overrides/time-limit.ini":/usr/local/etc/php/conf.d/time-limit.ini:ro -e LDAP_ALLOW_GUEST=true -e LDAP_HOST=192.168.1.xxx -e LDAP_BASE_DN="dc=mydomain,dc=com,dc=br" -e LDAP_NAME="mydir" -p 8088:8080 --name pla phpldapadmin/phpldapadminWhere memory-limit.ini adds the rule memory_limit = 512M and time-limit.ini adds max_execution_time = 120(to solve both the memory cap and the timeout).
- Access the server (I have it on 8088 because it's behind a reverse proxy so I keep my Apache up on the host, but the issue raises when accessing it through
localhost:8088too)
Expected behavior
The tree page to show or a configuration error in the logs. Right now it seems (to me, php illiterate) that PLA is struggling to parse the attributes it received.
Logs
In this gist you can find all LDAP logs as well as Laravel's log.
Here you can check that:
- The LDAP server is reachable;
- The Bind occurs;
- The connection dies because of a stack limit reach.
LDAP Server details (please complete the following information):
- OS: Fedora Linux 42 Server Edition
- Server Name 389 Directory Service (389-ds-base-3.1.2-4.fc42.x86_64 [389-Directory/3.1.2 B2025.045.0000]
- Version 3.1.2
Additional context
As I said above, I am not sure it's a bug, but the lack of content regarding this made me open the issue. Thanks.