[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: (ITS#3979) glue mixtures can confuse slapadd
h.b.furuseth@usit.uio.no wrote:
> Full_Name: Hallvard B Furuseth
> Version: HEAD
> OS: Linux
> URL:
> Submission from: (NULL) (129.240.186.42)
> Submitted by: hallvard
>
>
> Problems with glue + unique + ldbm + slapadd, and
> glue + database not supporting slapadd + database supporting slapadd:
>
> include ..../schema/core.schema
>
> database ldbm
> suffix cn=foo,o=bar
> directory /tmp/db/foo
> overlay unique
> unique_attributes uid
>
> database ldbm
> suffix o=bar
> directory /tmp/db/bar
> overlay glue
> glue-sub cn=foo,o=bar
>
> Now slapadd -b "cn=foo,o=bar" works, but slapadd -d-1 -b "o=bar" says:
> slapadd startup: initiated.
> backend_startup_one: starting "cn=foo,o=bar"
> unique_open: overlay initialized
> backend_startup: bi_open failed!
> slap_startup failed
> It works if ldbm is replaced with bdb, or if the unique overlay is removed.
>
This appears to be caused by ldbm_back_open being called twice; it calls
ldbm_initialize() which only wants to be called once. I guess we need to
keep track of this; or we could change ldbm_initialize() to just return
0 on subsequent calls.
--
-- Howard Chu
Chief Architect, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc
OpenLDAP Core Team http://www.openldap.org/project/