From: Norbert K. <nor...@da...> - 2002-04-23 12:35:41
|
--On Dienstag, 23. April 2002 11:19 +0100 Graham Barr <gb...@po...>=20 wrote: > Hm, I guess canonical_dn needs to be split from usinf explode_dn, > or explode_dn needs to be told not to expand. Otherwise you cannot tell > the difference between > > CN=3D#a0 > > and > > CN=3D\#a0 My version of ldap_explode_dn also unescapes "^#(hexpair)+". 'CN=3D#a0' is 'CN=3D\a0' and 'CN=3D\#a0' is 'CN=3D\23a0' > Do all testcases pass with your functions in place of the existing ones ? There is one false positiv left: '01.1=3Djsmith' There was a typo in ldap_explode_dn which prevented lower casing from=20 working. I also update the return code handling in case of an error and=20 added a reverse parameter to ldap_explode_dn as well as support for the=20 '<UID=3Djsmith,O=3Dexample,C=3DUS>' LDAPv2-ism. Attached is the updated version of dnutils.pm and a test script along with=20 the test cases from ldapbis. --=20 Norbert Klasen, Dipl.-Inform. DAASI International GmbH phone: +49 7071 29 70336 Wilhelmstr. 106 fax: +49 7071 29 5114 72074 T=FCbingen email: nor...@da... Germany web: http://www.daasi.de |