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

Patch: slapcat dislikes sasl-secprops (ITS#1128)

Full_Name: Mark H. Wood
Version: 2.0.7
OS: Linux 2.2, 2.4
URL: ftp://ftp.openldap.org/incoming/mark-h-wood-010426.patch
Submission from: (NULL) (

If slapd.conf includes a sasl-secprops directive then slapcat fails,
"No databases found in config file".  Adding '-d 1' to the command produces the
additional message, "/etc/openldap/slapd.conf: line 25: sasl-secprops: ".  This
happens regardless of whether or not the directive is correctly coded.

The message occurs in config.c, where the directive's argument is passed to
slapd_sasl_secprops().  A NULL pointer is expected if there was no error;
otherwise this message issues, displaying the target of the returned pointer as
a string explaining the error.

In slapcat, slapd_sasl_secprops is a dummy routine supplied by mimic.c.  The
version in mimic erroneously returns a pointer to a null *string* ("") rather
than a null *pointer*.  I've uploaded a patch for mimic.c .