Full_Name: Helmut Franzke Version: 2.4.11 / 2.4.9 OS: Ubuntu server 8.04.1 / Centos 4.6 URL: ftp://ftp.openldap.org/incoming/ Submission from: (NULL) (192.109.150.105)
I could get slaptest/slapd to produce a segmentation fault by using the unique overlay and a unique_uri with a base dn. This behaviour depends on the position of the overlay/unique_uri in slapd.conf and doesn't appear if you don't use a base dn regardless of the position. (I know an overlay should be defined after the other configuration settings have been set. I encountered this bug when I put it in the first part by mistake, see below)
I could reproduce this with OpenLdap 2.4.9 from Ubuntu 8.04.1 server as well as a fresh compiled OpenLdap 2.4.11 on Ubuntu 8.04.1 and Centos 4.6
How to reproduce:
Take a (very simple) OpenLdap installation and put the overlay stuff before the suffix configuration:
------------------------------------------------------------- . . moduleload unique . . ####################################################################### # Specific Directives for database #1, of type hdb: # Database specific directives apply to this databasse until another # 'database' directive occurs database hdb
# The base of your directory in database #1
overlay unique unique_uri ldap:///"dc=my-domain,dc=com"?gidNumber?sub
suffix "dc=my-domain,dc=com"
. . -------------------------------------------------------
Then check the configuration:
ldapmaster-dev:/etc/ldap#slaptest Segmentation fault
ldapmaster-dev:/etc/ldap#slapd -d 4 Segmentation fault
Putting the overlay stuff at the end of the database section or the suffix configuration before the overly stuff it works as expected. It also works without a base dn (unique_uri ldap:///?gidNumber?sub) regardless of the position.