My YunoHost server
Hardware:
Server hardware architecture is lxc amd64
Server is running Linux kernel 6.5.11-7-pve
Server is running Debian 11.10
YunoHost version: x.x.x
Server is running YunoHost 11.2.20.1 (stable)
I have access to my server : Through SSH | through the webadmin | direct access via keyboard / screen
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: Dolibarr 19.0.0, auto-upgraded by itself to 19.0.2 before first run.
Description of my issue
This confuses meâŚ
I thought that means that Yunohost users can access the app.
Instead, I was asked (by Dolibarr first-run) to give a password for the (preselected, read-only) admin user I selected during app install. I gave the same password as for that user on Yunohost; Dolibarr answered with âUser already existsâ.
After that: not any user/password combination works. Not the selected admin user, and not any other user.
Besides that, or actually, before that, the app was locked by /var/www/dolibarr/documents/install.lock
, suggesting an upgrade was being carried out. After removing the lock file, the application was available and invited to perform an upgrade (19.0.0 â 19.0.2) before continuing to the first-run wizard.
The password recovery works for normal users, but the admin user does not receive an email. Even so: the password does not match the YNH password for the user.
Lifala gave hints on how to resolve a conflict between Dolibarr and LDAP, but seemingly that was for a working installation.
While installing, I changed accessibility from âVisitorsâ to âYNH usersâ (âThis can be changed laterâ, but I donât see the setting afterwards)
I uninstalled the app, being sure that I did not pay attention or had a mistake while installing.
Second try, this time âAvailable to visitorsâ, using another user as admin: same process, same symptoms. The password entered for the admin user is not accepted, password recovery for admin does not send an email. Password recovery for other users works, but they donât have any roles/permissions.
When checking the database, I notice that the admin account does not have an email address configured:
# mariadb
/r dolibarr ;
select * from llx_user limit 1 ;
update llx_user set email = 'my_mail@domain,tld' where login = 'mylogin'
Now I can request a password reset and log in to Dolibarr. I can find how to generate a new password, but not how change my Dolibarr password to my YNH password, or how to make Dolibarr use LDAP.
I hoped to use a function on the database to hash/encrypt my known YNH password, but the sources use PHP functions for that (which donât know how to apply manually). The length of the generated pass_crypt is 60.
Edit: I tried to check whether LDAP is queried, but I donât know where to find the log. There is no entry in /var/log/auth.log
. My YNH-users are available in Dolibarr. None of them have a password or encrypted password in the database. All of them get an error when trying to log in.
The LDAP-connection itself seems OK; the LDAP module in Dolibarr can make a connection :
It also finds the correct number of users, but the group configuration is not complete. I donât know what to enter to make it work, or whether it is a cause for not being able to log in.
It seems Iâm on the wrong path. Maybe some upgrade of Dolibarr broke the YNH installer?
Any suggestion?