Don't download the schema in ipadiscovery

This commit is contained in:
Petr Viktorin authored and Martin Kosek committed 2013-03-13 12:36:34 +01:00
1 parent cf4b52111d
commit 63407ed477
1 file changed
+3 -1
+3 -1
View File
@@ -330,9 +330,11 @@ class IPADiscovery(object):
if ca_cert_path:
lh = ipaldap.IPAdmin(thost, protocol='ldap',
cacert=ca_cert_path, start_tls=True,
no_schema=True, decode_attrs=False,
demand_cert=True)
else:
lh = ipaldap.IPAdmin(thost, protocol='ldap')
lh = ipaldap.IPAdmin(thost, protocol='ldap',
no_schema=True, decode_attrs=False)
try:
lh.do_simple_bind(DN(), '')
except errors.ACIError: