Remove unused ec2 driver option

Remove the unused ec2 driver option from the config. This option
is unused since the credential backend is used for the ec2 contrib
extension.

Change-Id: I5385a086210e415a14b0ed1605c9ded50a280ad2
Restrict certain APIs to cloud admin in domain-aware policy

Some of the APIs in the domain-aware policy file are currently
allowed by any "admin" user, when they should really be locked
down to the cloud admin.  Without this, users who are a project
admin will be allowed to do things like manage regions, IdPs,
and other objects that they should not be allowed to touch.

Change-Id: Ifca8bc2fffd2d8c1bf02373d1fadd459a77f836c
Closes-bug: #1381809
Remove check_password() in identity.backend.ldap

Password check is handled directly to ldap. This method is
not used at all.

Change-Id: Ib861ac8c9fbb613f8030cc25970f6ddc285d4c3b
Add max-complexity to pep8 for Keystone

The current highest complexity is 23, set the maximum complexity
for flake8 to 24. This should help to keep code simple and
maintainable. It should be possible to reduce the maximum
complexity to something closer to 20 with relatively small efforts.

keystone.common.sql.migrate_repo.versions.039_grant_to_assignment:
    'downgrade_assignment_table' is complexity of 21

keystone.token.controllers:
    'Auth._authenticate_token' is complexity of 23

Change-Id: I47cb13bac97e9144ef004977942b9eaa50a17b39
Use newer python-ldap paging control API

The API for using the LDAP simple paged results control changed
between python-ldap version 2.3 and 2.4. Our current implementation
fails with an AttributeError when trying to use paging with version
2.4 of python-ldap.

This patch detects the capabilities of the underlying python-ldap
version and uses the newer API in versions of python-ldap that have
removed the older API.

Change-Id: I2986e12daea3edf50f299af5927d2a05278e82f7
Closes-bug: #1381768
Merge "Use newer python-ldap paging control API"
Merge "Remove unused ec2 driver option"
Merge "Add max-complexity to pep8 for Keystone"