summaryrefslogtreecommitdiffstats
path: root/ipaserver/install/dsinstance.py
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2010-08-18 18:43:11 -0400
committerRob Crittenden <rcritten@redhat.com>2010-09-07 15:38:46 -0400
commit6049a258485d13e5b232ba2dbb9ed05162809240 (patch)
tree1455e95fd85510818b96a6fc4ef0042493ba8f87 /ipaserver/install/dsinstance.py
parent221351809b94f71572219177b36443a60c157cf7 (diff)
downloadfreeipa-6049a258485d13e5b232ba2dbb9ed05162809240.tar.gz
freeipa-6049a258485d13e5b232ba2dbb9ed05162809240.tar.xz
freeipa-6049a258485d13e5b232ba2dbb9ed05162809240.zip
Make ldap2 class work as a client library as well.
Move the user-private group caching code out of the global config and determine the value the first time it is needed. Renamed global_init() back to get_schema() and make it take an optional connection. This solves the problem of being able to do all operations with a simple bind instead of GSSAPI. Moved the global get_syntax() into a class method so that a schema can be passed in. If a schema wasn't loaded during the module import then it is loaded when the connection is created (so we have the credntials needed for binding). ticket 63
Diffstat (limited to 'ipaserver/install/dsinstance.py')
-rw-r--r--ipaserver/install/dsinstance.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipaserver/install/dsinstance.py b/ipaserver/install/dsinstance.py
index 4ba91066b..f91d69b7b 100644
--- a/ipaserver/install/dsinstance.py
+++ b/ipaserver/install/dsinstance.py
@@ -123,7 +123,7 @@ def has_managed_entries(host_name, dm_password):
conn = ldap2(shared_instance=False, ldap_uri=ldapuri, base_dn='cn=config')
conn.connect(bind_dn='cn=Directory Manager', bind_pw=dm_password)
(dn, attrs) = conn.get_entry('cn=Managed Entries,cn=plugins',
- ['*'])
+ ['*'], time_limit=2, size_limit=3000)
return True
except errors.NotFound:
return False