[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: importing multi line fields



On Fri, 08 Jan 1999 10:41:24 EST, "Douglas E. Wegscheid" wrote:
> At 08:46 AM 1/8/99 +0000, Chris Ridd wrote:
> >The $ separator used in the Postal Address LDAP string format has 
> >nothing to do with carriage returns or line feeds. Postal Address is 
> >not a "multiline field", it is a value which contains up to 6 strings, 
> >which is an important distinction to make.
> >
> >If you put $ signs in a value of Directory String syntax (for example) 
> >they will remain just that, $ signs. (This is a good thing!)
> >
> >If you wanted a particular string component of a postal address to 
> >contain a CRLF, you would have to encode it over the wire as follows:
> >
> >1st line of 1st string\0d\0a2nd line of 1st string$2nd string$3rd string
> >
> >This is described in RFC 1778 and RFC 2252, which you should read.
> 
> historically, $ is used as a separator in postaladdress (and actually
> stored in the directory). The clients had to know to do the encoding and

The way they are stored varies between servers, of course.

> decoding. I also recall seeing some proposed schema with examples that used
> this schema, the Howes & Smith LDAP book uses it, and RFC 1778 section 2.23
> has the BNF for "Values of type PostalAddress" as:
> 
> <postal-address> ::= <t61string> | <t61string> '$' <postal-address>
> 
> Am I misinterpreting or misusing the RFC information?

I don't know how you are using it :-) but your interpretation is 
correct: $ is a *separator* in attributes of syntax Postal Address and 
doesn't indicate any magic CR or LF...

Chris