<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
On 09/08/2010 05:19 PM, Rob Crittenden wrote:
<blockquote cite="mid:4C87FDC7.90508@redhat.com" type="cite">Allow the
schema to be set once an ldap connection is locked.
  <br>
  <br>
When making LDAP calls via api.Backend.ldap2 the ldap2 object will
already be locked by the api.finalize() call. So the first time that
api.Backend.ldap2.connect() is called an error would be thrown that
self.schema cannot be set because the object is ReadOnly. This uses the
documented procedure for working around this lock.
  <br>
  <br>
This was preventing the DNS installation to proceed.
  <br>
  <br>
ticket #188
  <br>
  <br>
rob
  <br>
  <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Freeipa-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Freeipa-devel@redhat.com">Freeipa-devel@redhat.com</a>
<a class="moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/freeipa-devel">https://www.redhat.com/mailman/listinfo/freeipa-devel</a></pre>
</blockquote>
<br>
Is this the behaviour it is supposed to fix?<br>
<br>
2010-09-08 10:46:18,776 DEBUG locked: cannot set ldap2.schema to
<ldap.schema.subentry.SubSchema instance at 0x2df4758><br>
  File "/usr/sbin/ipa-server-install", line 835, in <module><br>
    sys.exit(main())<br>
<br>
  File "/usr/sbin/ipa-server-install", line 773, in main<br>
    api.Backend.ldap2.connect(bind_dn="cn=Directory Manager",
bind_pw=dm_password)<br>
<br>
  File "/usr/lib/python2.6/site-packages/ipalib/backend.py", line 62,
in connect<br>
    conn = self.create_connection(*args, **kw)<br>
<br>
  File "/usr/lib/python2.6/site-packages/ipalib/encoder.py", line 188,
in new_f<br>
    return f(*new_args, **kwargs)<br>
<br>
  File "/usr/lib/python2.6/site-packages/ipaserver/plugins/ldap2.py",
line 295, in create_connection<br>
    self.schema = get_schema(self.ldap_uri, conn)<br>
<br>
  File "/usr/lib/python2.6/site-packages/ipalib/base.py", line 131, in
__setattr__<br>
    SET_ERROR % (self.__class__.__name__, name, value)<br>
<br>
<br>
</body>
</html>