in reply to LDAP. Parantheses present in the filter cn value
Escaping them with a backslash (within double quotes the backslash is meaningful and must be escaped, so two of them) should work:
$ldap->search( base => $ldapbase, scope => "sub", filter => "(cn= John Wyner \\(DRAFT\\))" );
perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: LDAP. Parantheses present in the filter cn value
by atcroft (Abbot) on Dec 05, 2013 at 15:48 UTC | |
Re^2: LDAP. Parantheses present in the filter cn value
by srini.here (Initiate) on Dec 09, 2013 at 12:58 UTC |
In Section
Seekers of Perl Wisdom