Integrating LDAP for User-Authentication fails

omg, LDAP works fine if I set

APP_ENV=qa