diff options
author | Gordon Ross <gwr@nexenta.com> | 2017-09-07 16:12:22 -0400 |
---|---|---|
committer | Gordon Ross <gwr@nexenta.com> | 2019-05-30 17:30:45 -0400 |
commit | 695ef821379e863d33c30fb148f4ecf87038b246 (patch) | |
tree | 97ce963e87bde32470e5c27252477301645aeca6 /usr/src/lib/libldap5/sources/ldap/common | |
parent | dbcaafbddbc82f9a7b3310551c4bcdb862b2515a (diff) | |
download | illumos-joyent-695ef821379e863d33c30fb148f4ecf87038b246.tar.gz |
10990 Get UNIX group info. from AD/LDAP with partial RFC2307 schema
Reviewed by: Matt Barden <matt.barden@nexenta.com>
Reviewed by: Evan Layton <evan.layton@nexenta.com>
Reviewed by: Chris Ridd <chrisridd@mac.com>
Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src/lib/libldap5/sources/ldap/common')
-rw-r--r-- | usr/src/lib/libldap5/sources/ldap/common/search.c | 14 |
1 files changed, 12 insertions, 2 deletions
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 @@ -805,6 +805,16 @@ unescape_filterval( char *val ) 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 */ if (( ival = hexchar2int( *s )) < 0 ) { |