# Problem with LDAP after upgrade to Yunohost 2.4

**URL:** <https://forum.yunohost.org/t/problem-with-ldap-after-upgrade-to-yunohost-2-4/1555>\
**Category:** Support\
**Tags:** french, english\
**Created:** [May 21, 2016, 6:12am UTC](https://forum.yunohost.org/t/problem-with-ldap-after-upgrade-to-yunohost-2-4/1555 "2016-05-21T06:12:10Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![jerome](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/j/a587f6/32.png) [@jerome](https://forum.yunohost.org/u/jerome)\
**Post date:** [May 21, 2016, 4:24pm UTC](https://forum.yunohost.org/t/problem-with-ldap-after-upgrade-to-yunohost-2-4/1555/12 "2016-05-21T16:24:37Z")

</div>

After discussions with @jeremy54 and an access to his server, there could be a migration issue when upgrading to Debian Jessie.  
To check if it’s your case, execute: `slapcat`. If it doesn’t return anything and if the folder `/var/lib/ldap/` contains some files named `__db.001`, you seem to be concerned. The fact is that the LDAP backend changed from _hdb_ to _mdb_ in Debian Jessie but no database migration was done in YunoHost v2.2. Here is how to fix that:

- Ensure that you’ve upgraded YunoHost to v2.4 and there is no pending package upgrade - a fix has just been released today.

- Replace the LDAP backend to the old one to recover your database: `sed -i 's/mdb/hdb/g' /etc/ldap/slapd.conf`

- See if the old database is loaded again by checking the output of: `slapcat`

```bash
rm -Rf /etc/ldap/slapd.d
mkdir /etc/ldap/slapd.d
slaptest -f /etc/ldap/slapd.conf -F /etc/ldap/slapd.d/ 2>&1
chown -R openldap:openldap /etc/ldap/slapd.d/
service slapd restart

```

- Check again the output of: `slapcat`. If it’s still doesn’t return anything, there should be another issue…

- Regenerate LDAP configuration and update the backend: `yunohost service regen-conf slapd --verbose --force`

- Check if everything works well… by executing: `slapcat`!

---

_[View the full topic](https://forum.yunohost.org/t/problem-with-ldap-after-upgrade-to-yunohost-2-4/1555)._
