diff options
author | Rob Crittenden <rcritten@redhat.com> | 2010-09-09 16:24:12 -0400 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2010-09-24 15:40:56 -0400 |
commit | 5b3d0f568a0015370438e3f589cad393f5c48c91 (patch) | |
tree | 6ad42af8aba6d3356c94b97a79848ff0fc76ad70 /ipaserver | |
parent | da8f51373a1ea634ed0e72bc5a15bb8dc42ec78f (diff) | |
download | freeipa.git-5b3d0f568a0015370438e3f589cad393f5c48c91.tar.gz freeipa.git-5b3d0f568a0015370438e3f589cad393f5c48c91.tar.xz freeipa.git-5b3d0f568a0015370438e3f589cad393f5c48c91.zip |
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.
Diffstat (limited to 'ipaserver')
-rw-r--r-- | ipaserver/plugins/ldap2.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ipaserver/plugins/ldap2.py b/ipaserver/plugins/ldap2.py index cc635b66..15b60245 100644 --- a/ipaserver/plugins/ldap2.py +++ b/ipaserver/plugins/ldap2.py @@ -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 |