Merge "Make the LDAP dependency clear between identity, resource & assignment"
This commit is contained in:
commit
4f37d29ca0
|
@ -1660,6 +1660,13 @@ section:
|
|||
user_allow_update = False
|
||||
user_allow_delete = False
|
||||
|
||||
.. NOTE::
|
||||
|
||||
While having identity related infomration backed by LDAP while other
|
||||
information is backed by SQL is a supported configuration, as shown above;
|
||||
the opposite is not true. If either resource or assignment drivers are
|
||||
configured for LDAP, then Identity must also be configured for LDAP.
|
||||
|
||||
Connection Pooling
|
||||
------------------
|
||||
|
||||
|
|
|
@ -44,9 +44,9 @@ class Assignment(assignment.Driver):
|
|||
self.LDAP_PASSWORD = CONF.ldap.password
|
||||
self.suffix = CONF.ldap.suffix
|
||||
|
||||
# These are the only deep dependency from assignment back
|
||||
# to identity. The assumption is that if you are using
|
||||
# LDAP for assignments, you are using it for Id as well.
|
||||
# This is the only deep dependency from assignment back to identity.
|
||||
# This is safe to do since if you are using LDAP for assignment, it is
|
||||
# required that you are using it for identity as well.
|
||||
self.user = ldap_identity.UserApi(CONF)
|
||||
self.group = ldap_identity.GroupApi(CONF)
|
||||
|
||||
|
|
|
@ -39,9 +39,9 @@ class Resource(resource.Driver):
|
|||
self.LDAP_PASSWORD = CONF.ldap.password
|
||||
self.suffix = CONF.ldap.suffix
|
||||
|
||||
# This is the only deep dependency from resource back
|
||||
# to identity. The assumption is that if you are using
|
||||
# LDAP for resource, you are using it for identity as well.
|
||||
# This is the only deep dependency from resource back to identity.
|
||||
# This is safe to do since if you are using LDAP for resource, it is
|
||||
# required that you are using it for identity as well.
|
||||
self.user = ldap_identity.UserApi(CONF)
|
||||
|
||||
self.project = ProjectApi(CONF)
|
||||
|
|
Loading…
Reference in New Issue