[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: (ITS#3979) glue mixtures can confuse slapadd



Howard Chu writes:
> Since the idea is that glueing makes a bunch of separate databases act
> as a single database, I think it is actually Least Astonishing that
> all of the glued databases are opened when you specify the main
> database.  Currently there is no way to open only the top level
> database (unless you disable the glue) but you can of course specify
> individual subdatabases and work on them separately.  Feel free to add
> notes to this effect to slapo-glue(5).

Will do.  And leave the other bugs in this ITS to someone else:-)
Something like "slap tools open the given database and any subordinate
databases that are glued into it and support the slap tool".

And a tweak to the slap tools' manpages, like "the database" -> "the
database and any relevant subordinate glued databases".


First though, should slapadd/slapcat -b "dc=uio,dc=no" open the kids
database in this case?

   database  bdb
   suffix    cn=kids,cn=people,dc=uio,dc=no
   directory /tmp/db/kids

   # Does not support slapadd/slapcat
   database  ldap
   suffix    cn=people,dc=uio,dc=no
   uri       ldap://ldap.uio.no/
   overlay   glue
   glue-sub  cn=kids,cn=people,dc=uio,dc=no

   database  bdb
   suffix    dc=uio,dc=no
   directory /tmp/db/uio
   overlay   glue
   glue-sub  cn=people,dc=uio,dc=no

Today slapadd -b "dc=uio,dc=no" < {file with the kids entry} segfaults:
#0  0x08178966 in glue_tool_entry_close (b0=0x82d1a60) at glue.c:444
444                     rc = glueBack->be_entry_close (glueBack);
(gdb) bt
#0  0x08178966 in glue_tool_entry_close (b0=0x82d1a60) at glue.c:444
#1  0x0817896b in glue_tool_entry_close (b0=0x82d1a60) at glue.c:444
#2  0x0817896b in glue_tool_entry_close (b0=0x82d1a60) at glue.c:444
...
#100000 0x0817896b in glue_tool_entry_close (b0=0x82d1a60) at glue.c:444
...

-- 
Hallvard