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

SASL regex segmentation faults with group based acls (ITS#1978)



Full_Name: Simon Wilkinson
Version: 2.1.2, 2.1.3 and CVS head
OS: Linux
URL: http://www.sxw.org.uk/computing/patches/openldap-saslbugfix.patch
Submission from: (NULL) (213.122.171.48)


The code to do in-directory lookups for SASLregex performs its backend searches
with the connection structure set to be NULL. This results in a segmentation
fault
when backend_group attempts to cache results in the connection structure.

Having asked on the openldap-devel list, the patch at the URL noted fixes the
SASL code to pass around connection information, and extracts the code to
reset the cached group information into a procedure of its own, in order that it

can be called whenever connection DN information is changed.