mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Add some tests for using the ldap2 Backend.
Fix a logic problem in ldap2:get_schema() for determining if it can fetch the schema or not. Normally we only want to do this for servers but if you pass in your own connection it will use that.
This commit is contained in:
@@ -121,7 +121,7 @@ def get_schema(url, conn=None):
|
||||
tmpdir = None
|
||||
has_conn = conn is not None
|
||||
|
||||
if (not api.env.in_server or api.env.context not in ['lite', 'server']
|
||||
if ((not api.env.in_server or api.env.context not in ['lite', 'server'])
|
||||
and conn is None):
|
||||
# The schema is only needed on the server side
|
||||
return None
|
||||
|
||||
Reference in New Issue
Block a user