s4-ldb: fixed error handling in openldap backend