[Date Prev][Date Next]
More info in textual error messages (ITS#1062)
Full_Name: Brian Candler
Submission from: (NULL) (22.214.171.124)
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