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

More info in textual error messages (ITS#1062)

Full_Name: Brian Candler
Version: 2.0.7
OS: FreeBSD-4.2
URL: http://pobox.com/~b.candler/software/patches/
Submission from: (NULL) (

LDAP responses include an error code plus an explanatory text string which can
displayed by the client. At the moment OpenLDAP just provides a fixed text
(e.g. "value contains invalid data") which doesn't identify which attribute
is at fault.

This would be much more helpful if it gave more information
(e.g. "value for attribute ipHostNumber contains invalid data")

The patches below improve a number of error messages. Instead of functions
back a pointer to a static string, the patch makes them accept a pointer and
to a caller-allocated block, into which the result message is written.

Two versions of the patch, one against CVS and one against 2.0.7