<!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 08/31/2010 08:28 PM, Brian LaMere wrote:
<blockquote
 cite="mid:AANLkTik8H7DVjkzaDtKrDwxJANc+ku4iixk7kvSY84q0@mail.gmail.com"
 type="cite">
  <div class="gmail_quote">
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
    <div class="im"><br>
&gt; Was this ever looked at again for a feature enhancement? &nbsp;Is it<br>
&gt; already available, if I do X thing?<br>
    </div>
A feature enhancement to the schema conversion tool? &nbsp;I'm not sure who<br>
maintains that now.<br>
  </blockquote>
  <div><br>
  </div>
  <div>well, I was simply running the <a moz-do-not-send="true"
 href="http://schema-reload.pl">schema-reload.pl</a> script; the script
ran fine, it was internal dynamic reload task on the directory server
that had a problem, per the error log for the slapd instance:</div>
  <div><br>
  </div>
  <div>
  <div>[31/Aug/2010:15:30:23 -0700] schemareload - Schema reload task
starts (schema dir: default) ...</div>
  <div>[31/Aug/2010:15:30:23 -0700] dse - The entry cn=schema in file
/etc/dirsrv/slapd-redacted/schema/97hosting.ldif is invalid, error code
21 (Invalid syntax) - attribute type nocastr128: Missing parent
attribute syntax OID</div>
  <div>[31/Aug/2010:15:30:23 -0700] schema_reload - schema file
validation failed</div>
  <div>[31/Aug/2010:15:30:23 -0700] schemareload - Schema validation
failed.</div>
  </div>
  <div><br>
  </div>
  <div>&nbsp;</div>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
    <div class="im">&gt; I got it because I was using "SUP nocastr128"
in an attributeType,<br>
&gt; after defining an attributeType of nocastr128 with the base
components<br>
&gt; I wanted to inherit.<br>
    </div>
So the problem is that SYNTAX is not inherited from the parent?<br>
What version of 389-ds-base are you using?<br>
Can you post the definitions of the parent and child attributes?<br>
    <div class="im"><br>
    </div>
  </blockquote>
  <div>&nbsp;</div>
  <div>Yeah, I messed with it a bit not knowing what it was talking
about; at first I tried to figure out why it was loading my
97hosting.ldif file earlier than the 00core.ldif file that had the
syntax that was "missing," since that seemed to be what the error was
saying.</div>
  <div><br>
  </div>
  <div>As a simple example though, if I try to create an attribute with
"SUP top" it fails; I can do that with an objectclass with no problems,
but not with an attributetype. &nbsp;Here's an extremely over-simplified
example:</div>
  </div>
</blockquote>
You can't have an attribute use an objectclass as it's superior.&nbsp; An
attribute can only use another attribute as it's superior.&nbsp; The same
restriction goes for an objectclass.&nbsp; An objectclass can only use
another objectclass as it's superior.<br>
<br>
-NGK<br>
<blockquote
 cite="mid:AANLkTik8H7DVjkzaDtKrDwxJANc+ku4iixk7kvSY84q0@mail.gmail.com"
 type="cite">
  <div class="gmail_quote">
  <div><br>
  </div>
  <div>-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------</div>
  <div>
  <div>me@redacted:/etc/dirsrv/slapd-redacted/schema# cat
96testing.ldif&nbsp;</div>
  <div>#</div>
  <div>################################################################################</div>
  <div>#</div>
  <div>dn: cn=schema</div>
  <div>#</div>
  <div>################################################################################</div>
  <div>#</div>
  <div>attributeTypes: (</div>
  <div>&nbsp;&nbsp;2.25.184169507047331805154432216124173436187.1.2.3.99999</div>
  <div>&nbsp;&nbsp;NAME 'testAttributeWithSup'</div>
  <div>&nbsp;&nbsp;DESC 'rfc2252 allows for both superior objectclasses and
superior attributetypes'</div>
  <div>&nbsp;&nbsp;SUP top</div>
  <div>&nbsp;&nbsp;)</div>
  <div>#</div>
  <div>################################################################################</div>
  <div>#</div>
  <div>me@redacted:/etc/dirsrv/slapd-redacted/schema#
/usr/lib64/dirsrv/slapd-redacted/<a moz-do-not-send="true"
 href="http://schema-reload.pl">schema-reload.pl</a> -v -D
"cn=Directory Manager" -j ../dirman.pwd&nbsp;</div>
  <div>ldapmodify: started Tue Aug 31 20:12:04 2010</div>
  <div><br>
  </div>
  <div>ldap_init( <a moz-do-not-send="true"
 href="http://redacted.here.com">redacted.here.com</a>, 389 )</div>
  <div>add objectclass:</div>
  <div><span class="Apple-tab-span" style="white-space: pre;"> </span>top</div>
  <div><span class="Apple-tab-span" style="white-space: pre;"> </span>extensibleObject</div>
  <div>add cn:</div>
  <div><span class="Apple-tab-span" style="white-space: pre;"> </span>schema_reload_2010_8_31_20_12_4</div>
  <div>adding new entry cn=schema_reload_2010_8_31_20_12_4, cn=schema
reload task, cn=tasks, cn=config</div>
  <div>modify complete</div>
  <div><br>
  </div>
  <div>me@redacted:/etc/dirsrv/slapd-redacted/schema# tail -4
/var/log/dirsrv/slapd-redacted/errors</div>
  <div>[31/Aug/2010:20:12:03 -0700] schemareload - Schema reload task
starts (schema dir: default) ...</div>
  <div>[31/Aug/2010:20:12:03 -0700] dse - The entry cn=schema in file
/etc/dirsrv/slapd-redacted/schema/96testing.ldif is invalid, error code
21 (Invalid syntax) - attribute type testAttributeWithSup: Missing
parent attribute syntax OID</div>
  <div>[31/Aug/2010:20:12:03 -0700] schema_reload - schema file
validation failed</div>
  <div>[31/Aug/2010:20:12:04 -0700] schemareload - Schema validation
failed.</div>
  </div>
  <div><br>
  </div>
  <div>-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------</div>
  <div><br>
  </div>
  <div>Doing the same with an objectclass ("SUP top") works fine,
obviously. &nbsp;All this means is I can't define attributes that are
inheritance types; no matter how many times I may repeat the same three
lines in many entries, they have to be repeated; I can't just say "SUP
nocastr128" instead.</div>
  <div><br>
  </div>
  <div>Again, doesn't stop anything from working, I just did a global
search/replace in vi and was done quickly. &nbsp;It just looks messier, and
was curious why it wasn't allowed to have superior attributes, or if
there was something I was doing wrong?</div>
  <div><br>
  </div>
  <div>Brian LaMere</div>
  </div>
  <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
--
389 users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:389-users@lists.fedoraproject.org">389-users@lists.fedoraproject.org</a>
<a class="moz-txt-link-freetext" href="https://admin.fedoraproject.org/mailman/listinfo/389-users">https://admin.fedoraproject.org/mailman/listinfo/389-users</a></pre>
</blockquote>
<br>
</body>
</html>