On 2021/06/30 02:27, C. G. wrote:
> Missing required extension
> Your install of PHP appears to be missing LDAP support.
>
> Please install LDAP support before using phpLDAPadmin.
> (Dont forget to restart your web server afterwards)
>
> It also says "Deprecated: Array and string offset access syntax with curly
> braces is deprecated in /var/www/phpldapadmin/lib/functions.php on line 1641"
>
> Also, when I try to login using Firefox, I get this error message :
>
> Fatal error: Uncaught Error: Call to undefined function ldap_explode_dn() in
> /var/www/phpldapadmin/lib/functions.php:2548 Stack trace: #0
> /var/www/phpldapadmin/lib/functions.php(2601): ldap_explode_dn_patch() #1
> /var/www/phpldapadmin/lib/Tree.php(135): pla_explode_dn() #2
> /var/www/phpldapadmin/lib/Tree.php(173): Tree->indexDN() #3
> /var/www/phpldapadmin/lib/Tree.php(62): Tree->addEntry() #4
> /var/www/phpldapadmin/lib/page.php(227): Tree::getInstance() #5
> /var/www/phpldapadmin/lib/page.php(418): page->tree() #6
> /var/www/phpldapadmin/htdocs/cmd.php(78): page->display() #7
> /var/www/phpldapadmin/htdocs/index.php(153): include('/var/www/phplda...') #8
> {main} thrown in /var/www/phpldapadmin/lib/functions.php on line 2548
>
> With Chrome, I simply get this message :
>
> This page isn’t working
>
> my_domain is currently unable to handle this request.
>
> HTTP ERROR 500
>
> OpenBSD 6.9 -release
>
> php-7.4.16p0 php-ldap-7.4.16p0 phpldapadmin-1.2.5p0 built from the ports ;
> same problem with phpldapadmin-1.2.5p0 php-ldap-7.4.20 and php-7.4.20
> installed with PKG
You must enable the php-ldap module. See the pkg-readme file for php.