delete the skipLDAP flag in middleware