diff --git a/lib/modules/Protocols.pmod/LDAP.pmod/client.pike b/lib/modules/Protocols.pmod/LDAP.pmod/client.pike index 7ed7d0af5b02035ec203f9415296ba393df13385..3d3246cf8e08b9b526f1c2dfc793cca244dae744 100644 --- a/lib/modules/Protocols.pmod/LDAP.pmod/client.pike +++ b/lib/modules/Protocols.pmod/LDAP.pmod/client.pike @@ -1,6 +1,6 @@ // LDAP client protocol implementation for Pike. // -// $Id: client.pike,v 1.13 2000/02/12 10:57:02 hop Exp $ +// $Id: client.pike,v 1.14 2000/02/17 17:59:53 hop Exp $ // // Honza Petrous, hop@unibase.cz // @@ -46,6 +46,8 @@ // [ Escaping untested, yet ] // v1.13 2000-02-12 - fixed search NOT op bug (end revision normalized) // +// v1.14 2000-02-17 - added decoding of UTF8 strings for v3 protocol +// // Specifications: // // RFC 1558 (search filter representations) @@ -131,6 +133,12 @@ } res += ({attrs}); } + + if(ldap_version == 3) { + // deUTF8 + res = Array.map(res, utf8_to_string); + } + return (res); } // _New_decode