From 695ef821379e863d33c30fb148f4ecf87038b246 Mon Sep 17 00:00:00 2001 From: Gordon Ross Date: Thu, 7 Sep 2017 16:12:22 -0400 Subject: 10990 Get UNIX group info. from AD/LDAP with partial RFC2307 schema Reviewed by: Matt Barden Reviewed by: Evan Layton Reviewed by: Chris Ridd Approved by: Dan McDonald --- usr/src/lib/libldap5/sources/ldap/common/search.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'usr/src/lib/libldap5/sources/ldap/common') diff --git a/usr/src/lib/libldap5/sources/ldap/common/search.c b/usr/src/lib/libldap5/sources/ldap/common/search.c index 1235234f8b..2f4cb166cd 100644 --- a/usr/src/lib/libldap5/sources/ldap/common/search.c +++ b/usr/src/lib/libldap5/sources/ldap/common/search.c @@ -1,10 +1,10 @@ /* * Copyright 2001-2002 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. + * + * Copyright 2017 Nexenta Systems, Inc. All rights reserved. */ -#pragma ident "%Z%%M% %I% %E% SMI" - /* * The contents of this file are subject to the Netscape Public @@ -804,6 +804,16 @@ unescape_filterval( char *val ) escape = 0; for ( s = d = val; *s; s++ ) { if ( escape ) { + /* + * need to leave escaped comma as-is, i.e. + * val="CN=Last\, First,OU=..." + */ + if (*s == ',') { + *d++ = '\\'; + *d++ = *s; + escape = 0; + continue; + } /* * first try LDAPv3 escape (hexadecimal) sequence */ -- cgit v1.2.3