[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) (212.74.96.2)


LDAP responses include an error code plus an explanatory text string which can
be
displayed by the client. At the moment OpenLDAP just provides a fixed text
string
(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
passing
back a pointer to a static string, the patch makes them accept a pointer and
length
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
http://pobox.com/~b.candler/software/patches/openldap-devel20010219-messages.gz
http://pobox.com/~b.candler/software/patches/openldap-2.0.7-messages.gz