Fixed wrong behavior when updating tenant or user with LDAP backends

User or tenent update request returns old value of field 'enabled'
when we use LDAP backends and flag tenant_enabled_emulation is True.

Closes-Bug: #1318927
Change-Id: I4b0c76a181e14a11df0cd14141abfdf78d4cedee
Make sure scoping to the project of a disabled domain result in 401.

Addresses the problem where we check for the validity of the scoped project,
we did not subsequently making sure its domain is also enabled.

Change-Id: I24e539aea9bb0ef0a22727fd9c1fb5d9d2ad1353
Closes-Bug: 1315556
Merge "Make sure scoping to the project of a disabled domain result in 401."
Merge "Fixed wrong behavior when updating tenant or user with LDAP backends"