From: Graham B. <gb...@po...> - 2003-03-20 15:09:04
|
----- Forwarded message from Douglas Gray Stephens <gr...@ca...> ----- Date: Thu, 20 Mar 2003 11:19:22 +0000 To: gb...@po... Cc: Thomas Stripling <tst...@ho...> From: Douglas Gray Stephens <gr...@ca...> Subject: Potential bug in Net::LDAP Content-Description: message body text Graham, I think that I may have hit a bug in Net::LDAP, in that it is behaving differently to the other LDAP Perl modules, or the ldapsearch command line clients from iPlanet, openldap and Innosoft (of course all of these use a variant of the C SDK). It appears that the C SDK reduces multiple wild cards to a single wild card. From the server logs, and looking at the OpenLDAP ldapsearch client with debugging enabled, I believe that this is done in the client. The attached file has 3 perl programs for Net::LDAPapi, Net::LDAP, and Mozilla's perldap, extracts from iPlanet LDAP server log, and the command line output from running the perl code, and the openldap ldapsearch command. The Net::LDAP version details are DB<6> p $Net::LDAP::VERSION 0.2701 DB<7> p $Net::LDAP::Util::VERSION 0.09 DB<8> p $Net::LDAP::Filter::VERSION 0.14 Can you consider if Net::LDAP should adopt the same user friendly approach of removing duplicate wild cards (may be the parse subroutine in Filter.pm so also do $filter =~ s/\*+/\*/go; after $filter =~ s/^\s*//; ). Thanks, Douglas. Content-Description: .signature -- ================================ Douglas GRAY STEPHENS Technical Architect (Directories) Schlumberger Cambridge Research High Cross, Madingley Road, Cambridge. CB3 0EL ENGLAND Phone +44 1223 325295 Mobile +44 773 0051628 Fax +44 1223 311830 Email DGr...@sl... ================================ ----- End forwarded message ----- |