[Freeipa-devel] [PATCH] ldif and acis for config

Kevin McCarthy kmccarth at redhat.com
Tue Oct 23 15:53:14 UTC 2007


Kevin McCarthy wrote:
> Simo Sorce wrote:
> > On Mon, 2007-10-22 at 16:23 -0700, Kevin McCarthy wrote:
> > > Simo Sorce wrote:
> > 
> > > > > +dn: cn=global,cn=config,cn=etc,$SUFFIX
> > > > > +changetype: add
> > > > > +objectClass: top
> > > > > +objectClass: nsContainer
> > > > > +objectClass: extensibleObject
> > > > ----------------^^^^^^^^^^^^^^^
> > > > 
> > > > /me raise eyebrow, are you *sure* ? :)
> > > 
> > > 
> > > Nope, definitely not sure.  It would be better if there was some
> > > objectClass I could use to store:
> > > -name
> > > -value
> > > -comment
> > > 
> > > so each configuration could have their own entry with a comment.  Do you
> > > have any suggestions about how to do that?
> > 
> > Unfortunately this is a very hard thing with LDAP, and I guess on
> > purpose.
> > An object class like that could be done, but it would make sense for a
> > single conf option, as in LDAP multivalued attributes are not guaranteed
> > to keep contents in a specific order.
> > 
> > objectClass: nameValuePairs
> > name: string
> > name: number
> > name: bool
> > value: 1
> > value: hey
> > value: 42
> > comment: my favourite
> > comment: the answer
> > comment: default
> > 
> > You see? 
> > 
> > LDAP is schema, schema is LDAP ...
> 
> But is the order guaranteed?  I think the modlist code works with sets
> and is guaranteed to mess up the ordering on any updates...

Duhh... really slow today. Now I'm seeing you were answering my own
question!

-Kevin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4054 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20071023/505bbd63/attachment.bin>


More information about the Freeipa-devel mailing list