[Date Prev][Date Next]
Re: Probable bug in use of strcasecmp in servers/slapd/acl.c (ITS#1516)
This should now be fixed in both HEAD and OPENLDAP_REL_ENG_2.
At 08:13 AM 2002-01-08, firstname.lastname@example.org wrote:
>Full_Name: Mark Blackman
>OS: FreeBSD 4.4
>Submission from: (NULL) (22.214.171.124)
>I believe that 4 uses of strcasecmp in servers/slapd/acl.c are in
>error and use the reverse logic to that intended.
>Namely, strcasecmp returns a 0 on a string match (case insensitive)
>but the logic in parts of acl.c suggest that the original author
>assumed a return value of 1 on string match. This is during
>the acl <who> clause evaluation.
>I've included a patch that reverses this logic to that
>probably intended. I posted to openldap-devel to confirm
>that it was a bug.