Skip to content

[Bug]: LDAP Authentication PHP #812

@dennis-ledergerber

Description

@dennis-ledergerber

Describe the problem

When trying to login with ldap credentials I receive the following error message.

Fatal error: Uncaught Error: Call to undefined function Poweradmin\Application\Service\ldap_connect() in /app/lib/Application/Service/LdapAuthenticator.php:111 Stack trace: #0 /app/lib/Infrastructure/Service/SessionAuthenticator.php(210): Poweradmin\Application\Service\LdapAuthenticator->authenticate() #1 /app/lib/AppInitializer.php(150): Poweradmin\Infrastructure\Service\SessionAuthenticator->authenticate() #2 /app/lib/AppInitializer.php(63): Poweradmin\AppInitializer->authenticateUser() #3 /app/lib/BaseController.php(78): Poweradmin\AppInitializer->__construct(true) #4 /app/lib/Application/Controller/LoginController.php(47): Poweradmin\BaseController->__construct(Array, true) #5 /app/lib/Application/Routing/SymfonyRouter.php(155): Poweradmin\Application\Controller\LoginController->__construct(Array) #6 /app/index.php(43): Poweradmin\Application\Routing\SymfonyRouter->process() #7 {main} thrown in /app/lib/Application/Service/LdapAuthenticator.php on line 111

Steps to reproduce

Configure LDAP with Custom-Settings.php
Add a user with LDAP Authentication
Try to login with LDAP Credentials

Poweradmin version

v4.1.0

Database

MySQL

Additional information (optional)

I'm using the latest Docker-container with PowerAdmin 4.1.0

Is it possible that the necessary ldap module is not loaded?

root@ntroww04:~# docker exec -it poweradmin /bin/sh
/app $ php -v
PHP 8.3.7 (cli) (built: May 10 2024 22:07:17) (ZTS)
Copyright (c) The PHP Group
Zend Engine v4.3.7, Copyright (c) Zend Technologies
/app $ php -m
[PHP Modules]
Core
ctype
curl
date
dom
fileinfo
filter
gettext
hash
iconv
intl
json
libxml
mbstring
mysqli
mysqlnd
openssl
pcre
PDO
pdo_mysql
pdo_pgsql
pdo_sqlite
Phar
posix
random
readline
Reflection
session
SimpleXML
sodium
SPL
sqlite3
standard
tokenizer
xml
xmlreader
xmlwriter
zlib

Metadata

Metadata

Assignees

Labels

infraPerformance & Infrastructure

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions