From 5b3d0f568a0015370438e3f589cad393f5c48c91 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Thu, 9 Sep 2010 16:24:12 -0400 Subject: 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. --- ipaserver/plugins/ldap2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ipaserver') diff --git a/ipaserver/plugins/ldap2.py b/ipaserver/plugins/ldap2.py index cc635b66c..15b602457 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 -- cgit