[SSSD] [PATCH] Allow ldap_access_filter values wrapped in parentheses

Stephen Gallagher sgallagh at redhat.com
Fri Jun 4 14:31:56 UTC 2010


Resolves:
https://bugzilla.redhat.com/show_bug.cgi?id=600352

The openldap libraries fail to parse a search filter that is wrapped 
with an extra set of quotes:

((&(uidNumber>=1000)(uidNumber<=2000)))

Internally, we were always wrapping the filter in parentheses (for 
safety, I thought), but this causes filters that are wrapped thusly in 
the sssd.conf to fail.

This patch detects whether the supplied filter begins with a parenthesis 
and omits adding the additional set.

-- 
Stephen Gallagher
RHCE 804006346421761

Delivering value year after year.
Red Hat ranks #1 in value among software vendors.
http://www.redhat.com/promo/vendor/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Allow-ldap_access_filter-values-wrapped-in-parenthes.patch
Type: text/x-patch
Size: 2773 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20100604/4a99ce8b/attachment.bin>


More information about the sssd-devel mailing list