[Date Prev][Date Next]
Patch: slapcat dislikes sasl-secprops (ITS#1128)
Full_Name: Mark H. Wood
OS: Linux 2.2, 2.4
Submission from: (NULL) (22.214.171.124)
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 .