From: Graham B. <gb...@po...> - 2001-06-07 09:10:33
|
----- Forwarded message from "\"M?ller, Axel\"" <Axe...@gf...> --= --- Date: Thu, 7 Jun 2001 10:44:37 +0200=20 To: "'gb...@po...'" <gb...@po...> From: "M?ller, Axel" <Axe...@gf...> Subject: ldap X-Mailer: Internet Mail Service (5.5.2653.19) Hello, excuse me please. We use your LDAP module to connect to a Microsoft Exchange Server Version 5.5. But we get bad Values return. Each german letter "=E4=C4=F6=D6=FC=DC=DF" will be replaced with "aAoOuU?= ". Do you know, where we must change your Source-Code to solve this problem = ? with kindly regards =20 Axel M=FCller Technik und Netze GFT Systems GmbH Tel.: +49 (0)3677 663 381 Ehrenbergstr. 11 Fax: +49 (0)3677 6429-11 D-98693 Ilmenau mailto:Axe...@gf... http://www.gft-systems.de ----- End forwarded message ----- |
From: Chris R. <chr...@me...> - 2001-06-07 09:55:13
|
Graham Barr <gb...@po...> wrote: > ----- Forwarded message from "\"M?ller, Axel\"" <Axe...@gf...> > ----- > = > Date: Thu, 7 Jun 2001 10:44:37 +0200 = > To: "'gb...@po...'" <gb...@po...> > From: "M?ller, Axel" <Axe...@gf...> > Subject: ldap > X-Mailer: Internet Mail Service (5.5.2653.19) > = > Hello, > = > excuse me please. > We use your LDAP module to connect to a Microsoft Exchange Server Version > 5.5. > = > But we get bad Values return. > = > Each german letter "=E4=C4=F6=D6=FC=DC=DF" will be replaced with = "aAoOuU?". > = > Do you know, where we must change your Source-Code to solve this problem = ? > = > with kindly regards = > = > Axel M=FCller > Technik und Netze It may not be a problem with Net::LDAP. Net::LDAP doesn't know anything about the character set you used in your string value, and it doesn't know anything about the character set used by the directory server. It simply sends the bytes in your value to the directory server. You need to work out what character set your server is expecting. If it is an LDAPv3 server (and you are binding with version=3D>3 in Net::LDAP) then your string should contain the characters encoded using UTF-8. If it is an LDAPv2 server, then you need to work out how non-standard it is. The standard LDAPv2 character set is called T.61, but the server may not understand this. In T.61 you add accents to characters by putting an extra byte (a non-spacing diacritical) in front of the character. Some common accents = are: umlaut over letter =3D> \xc8 grave accent over letter =3D> \xc1 acute accent over letter =3D> \xc2 (eg =E4 becomes \xc8a) If that doesn't work with Exchange, Exchange is not handling T.61 correctly (ie it is a bug in Exchange.) I'm not sure how to obtain the "=DF". You should try binding using LDAPv3 and using UTF-8 in your string values, it is a lot easier. Cheers, Chris |
From: Jim H. <ha...@us...> - 2001-06-07 13:51:31
|
This from a year old posting on this list that I had saved. Does anyone know if things are better with 5.6.1? My recollection was that the problems were mostly with mult-threaded installations of 5.6. Is that correct? > > I downloaded and installed PERL 5.6. > > Not the most stable of versions. 5.6 has some known problems and Net::LDAP > is known to tickle them. I would suggest using 5.005_03 Thanks --Jim Harle |
From: Steve H. <ste...@ex...> - 2001-06-07 14:09:30
|
On Thu, Jun 07, 2001 at 09:51:23AM -0400, Jim Harle wrote: > This from a year old posting on this list that I had saved. Does anyone > know if things are better with 5.6.1? My recollection was that the > problems were mostly with mult-threaded installations of 5.6. Is that > correct? 5.6.1 generally seems to be more stable than 5.6.0. I've not used Net::LDAP much with it, though. But where I have it's worked fine... hmm, can Net::LDAP do things like setting UTF8-ness on strings passed to/from an LDAPv3 server? I get the impression it's not trivial to do in pure Perl, though :| SRH -- + Steve Haslam | W: +44-20-7447-1839 + + Grunt, Excite UK | M: +44-7775-645618 + . I'm killing things with this razor blade, making sure a price gets paid . |
From: Graham B. <gb...@po...> - 2001-06-07 15:49:11
|
On Thu, Jun 07, 2001 at 03:09:21PM +0100, Steve Haslam wrote: > On Thu, Jun 07, 2001 at 09:51:23AM -0400, Jim Harle wrote: > > This from a year old posting on this list that I had saved. Does anyone > > know if things are better with 5.6.1? My recollection was that the > > problems were mostly with mult-threaded installations of 5.6. Is that > > correct? > > 5.6.1 generally seems to be more stable than 5.6.0. I've not used > Net::LDAP much with it, though. But where I have it's worked fine... Yes 5.6.1 is much better, but I would still stay away from using threaded-perl. > hmm, can Net::LDAP do things like setting UTF8-ness on strings passed > to/from an LDAPv3 server? I get the impression it's not trivial to do > in pure Perl, though :| Right, it is not trivial. And in 5.7.x this is one area that is being worked on a lot. So I really dont want to do anything 5.6 specific. In 5.7 there is and Encode module. Although I only see Net::LDAP using this to get the octets of a value that has been passed and has been tagged as utf8. I don't think it will (yet ayway) be tagging the strings as they come back as it does not know which values are utf8 and which are not (eg a jpeg) Graham. |