sync oslo policy

Related-Bug: 1221889
Change-Id: I0fd0be982879647ef73081326708ec37b1cb9fd9
Protect oauth controller calls and update policy.json

We need to call controller.protected for most of the oauth_calls.
With the exception of the public ones (create_request_token,
create_access_token, and authenticate_access_token).
Also need to update the policy.json accordingly.

fixes bug 1231709

Change-Id: Ica111aa3ed82499d2de50d472754a0b5b3c5cc71
Validate token calls return 404 on invalid tokens

Invalid X-Subject-Token was resulting in HTTP 401 rather than 404
This is causing the auth_token middleware to re-authenticate
It expects a 404 on an invalid token.

Change-Id: Ieb4cbd4f69b4f3c5944eebc262e694e831d1ca6d
Fixed-Bug: #1221889
Fixed-Bug: #1186059
Fix error when create user with LDAP backend

Creating users would fail when using the LDAP backend. The error
from the server was '400 Bad Request' with the message
'must be string, not None'.

The fix is to filter out 'None' attr names when creating a user.

Closes-Bug: #1231772

Change-Id: I747f39039b9c840a3e5861b66996dee328510cd6
Eliminate type error on search_s

Guard the list comprehension to eliminate 'None' valued keys from
the attrlist from causing an exception when trying to iterate on
the None singleton.

related-bug: #1231772
Change-Id: I823a53d100b5e4210c767507e3233b61ed372068
Fix live LDAP tests

The live LDAP tests were failing. The tests for case
sensitivity for project name and user name failed because the
attribute is not case sensitive. The test for updating a
missing attribute with a falsy value was failing because the
attribute chosen for the project description does not allow an
empty string.

Change-Id: I723c40b5eab24ac13e27fd040d0d881998f106db
Related-Bug: #1231772
Merge "Protect oauth controller calls and update policy.json"
Merge "sync oslo policy"
Merge "Validate token calls return 404 on invalid tokens"
Merge "Eliminate type error on search_s"
Merge "Fix live LDAP tests"