summaryrefslogtreecommitdiffstats
path: root/ipaserver/ipaldap.py
diff options
context:
space:
mode:
authorPetr Viktorin <pviktori@redhat.com>2013-01-17 09:24:21 -0500
committerMartin Kosek <mkosek@redhat.com>2013-03-01 16:59:43 +0100
commit2f84bd694bc5ce00d70ca297c7232ad03d5a554c (patch)
tree6db8fdfc48c70011959f0f95f27a4b8437924241 /ipaserver/ipaldap.py
parent08276c24febf392bbf67cd4917ce65c77e371aef (diff)
downloadfreeipa.git-2f84bd694bc5ce00d70ca297c7232ad03d5a554c.tar.gz
freeipa.git-2f84bd694bc5ce00d70ca297c7232ad03d5a554c.tar.xz
freeipa.git-2f84bd694bc5ce00d70ca297c7232ad03d5a554c.zip
Move the decision to force schema updates out of IPASimpleLDAPObject
This decision used the api object, which might not be available in installer code. Move the decision to callers. Part of the work for: https://fedorahosted.org/freeipa/ticket/2660
Diffstat (limited to 'ipaserver/ipaldap.py')
-rw-r--r--ipaserver/ipaldap.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/ipaserver/ipaldap.py b/ipaserver/ipaldap.py
index ddf34cd3..49b38772 100644
--- a/ipaserver/ipaldap.py
+++ b/ipaserver/ipaldap.py
@@ -41,8 +41,11 @@ from ipaserver.plugins.ldap2 import IPASimpleLDAPObject
SASL_AUTH = ldap.sasl.sasl({}, 'GSSAPI')
DEFAULT_TIMEOUT = 10
+
class IPAEntryLDAPObject(IPASimpleLDAPObject):
+ # FIXME: class for backwards compatibility only
def __init__(self, *args, **kwds):
+ kwds.setdefault('force_schema_updates', True)
IPASimpleLDAPObject.__init__(self, *args, **kwds)
def result(self, msgid=ldap.RES_ANY, all=1, timeout=None):