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

Re: (ITS#6542) Segmentation Fault if config file (ldif) got changed



felix.schuster@gmx.at wrote:
> Full_Name: Felix
> Version: 2.4.19
> OS: Linux/Gentoo
> URL:
> Submission from: (NULL) (78.142.131.97)
>
>
> Using the new configuration scheme, I changed
> /etc/openldap/slapd.d/cn=config/olcDatabase={1}hdb.ldif of a running openldap
> instance. When I tried to restart openldap it gaves me a Segmentation Fault
> error. Even if I called the changes off, openldap refused to start (furthermore
> segfaulted). I needed to get a copy of the original configuration file from my
> backup to successfully start openldap again.
> I think it's somewhere ok to deny working with a hand-changed configuration, but
> I think we will need a friendly advise, no unfriendly Segementation Fault error.
>
cn=config is an LDAP database. Like any other LDAP database, you are only 
supposed to use ldapadd/modify/delete to write to it while slapd is running. 
You would probably get segfaults if you hand-edited the data files in a 
back-bdb database too. And no, we will not add code to protect from such misuse.

-- 
   -- Howard Chu
   CTO, Symas Corp.           http://www.symas.com
   Director, Highland Sun     http://highlandsun.com/hyc/
   Chief Architect, OpenLDAP  http://www.openldap.org/project/