Hardware: Proxmox VM YunoHost version: 11.2.4 I have access to my server : Through SSH & through the webadmin Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no If your request is related to an app, specify its name and version: name: phpLDAPadmin version: 1.2.6.6~ynh2
Description of my issue
I am unable to access phpldapadmin after installation. This is the webpage error I get after signing into the YunoHost user page and clicking on the phpldapadmin button:
Fatal error: Uncaught Error: Undefined constant "LDAP_DEREF_NEVER" in /var/www/phpldapadmin/lib/config_default.php:387 Stack trace: #0 /var/www/phpldapadmin/lib/functions.php(266): Config->__construct() #1 /var/www/phpldapadmin/htdocs/index.php(116): check_config() #2 {main} thrown in /var/www/phpldapadmin/lib/config_default.php on line 387
Problem solved after update 1.2.6.6~ynh3.
Nevertheless, Impossible to do an opération ldap_modify. LDAP dit :: Insufficient access Erreur numéro :: 0x32 (LDAP_INSUFFICIENT_ACCESS) Description: You do not have sufficient permissions to perform that operation.
This appends since the last big yunohost update, with the suppression of “admin”.
Can we connect to ldap with the “sufficient permission” to do that ?
The issue is solved by modifying /usr/share/yunohost/conf/slapd/config.ldif
The olcAccess: {1} should be writtenable by the user.
I changed the line by * read to by * write
and use sudo /usr/share/yunohost/hooks/conf_regen/06-slapd post true
Then I could modify the LDAP base
And then I changed the line above back and redo the sudo command.