From: Dave M. <dm...@ju...> - 2002-02-26 22:19:20
|
Take a look at this article: =20 http://support.microsoft.com/default.aspx?scid=3Dkb;en-us;Q224105 =20 Exchange 5.5 by default is not configured to allow substring searches. =20 - Dave -----Original Message----- From: Andrew Beck [mailto:and...@eu...]=20 Sent: Tuesday, February 26, 2002 2:07 PM To: 'per...@li...' Subject: Substing Search Problems =09 =09 Using the following code against an Exchange 5.5 SP3 ldap server: =20 $Connection =3D Net::LDAP->new($EXCHANGE_SERVER,debug=3D>12) or die "$@"; $Connection->bind; =20 $Results =3D $Connection->search( base =3D> "",=20 filter =3D> 'physicalDeliveryOfficeName=3D*C103*', attrs =3D> ['CN','Mail','Department','GivenName','SN','physicalDeliveryOfficeName', 'telephonenumber'] ); =09 I get no results by changing the filter line to: =20 filter =3D> 'physicalDeliveryOfficeName=3DThe rest of the text C103*', =09 I get a correct match. =20 Below is the output when running with debug set to 12 for the first example =20 Net::LDAP=3DHASH(0x1a7f164) sending: 0000 30 12: SEQUENCE { 0002 02 1: INTEGER =3D 1 0005 60 7: [APPLICATION 0] { 0007 02 1: INTEGER =3D 2 000A 04 0: STRING =3D '' 000C 80 0: [CONTEXT 0] 000E : } 000E : } Net::LDAP=3DHASH(0x1a7f164) received: 0000 30 12: SEQUENCE { 0002 02 1: INTEGER =3D 1 0005 61 7: [APPLICATION 1] { 0007 0A 1: ENUM =3D 0 000A 04 0: STRING =3D '' 000C 04 0: STRING =3D '' 000E : } 000E : } Net::LDAP=3DHASH(0x1a7f164) sending: 0000 30 195: SEQUENCE { 0003 02 1: INTEGER =3D 2 0006 63 189: [APPLICATION 3] { 0009 04 50: STRING =3D '' 003D 0A 1: ENUM =3D 2 0040 0A 1: ENUM =3D 2 0043 02 1: INTEGER =3D 0 0046 02 1: INTEGER =3D 0 0049 01 1: BOOLEAN =3D FALSE 004C A4 36: [CONTEXT 4] { 004E 04 26: STRING =3D 'physicalDeliveryOfficeName' 006A 30 6: SEQUENCE { 006C 81 4: [CONTEXT 1] 006E : 43 31 30 33 __ __ __ __ __ __ __ __ __ __ __ __ C103 0072 : } 0072 : } 0072 30 82: SEQUENCE { 0074 04 2: STRING =3D 'CN' 0078 04 4: STRING =3D 'Mail' 007E 04 10: STRING =3D 'Department' 008A 04 9: STRING =3D 'GivenName' 0095 04 2: STRING =3D 'SN' 0099 04 26: STRING =3D 'physicalDeliveryOfficeName' 00B5 04 15: STRING =3D 'telephonenumber' 00C6 : } 00C6 : } 00C6 : } Net::LDAP=3DHASH(0x1a7f164) received: 0000 30 12: SEQUENCE { 0002 02 1: INTEGER =3D 2 0005 65 7: [APPLICATION 5] { 0007 0A 1: ENUM =3D 0 000A 04 0: STRING =3D '' 000C 04 0: STRING =3D '' 000E : } 000E : } Net::LDAP=3DHASH(0x1a7f164) sending: 0000 30 5: SEQUENCE { 0002 02 1: INTEGER =3D 3 0005 42 0: [APPLICATION 2] 0007 : } =20 Any Ideas why it does not work with the filter of *C103* Andrew Beck =09 =20 |