It seems that there was some advanced configuration missing. This thread help me a lot:
Migration to LDAP keeping users and data