Re: [exim-dev] LDAP multiline attribute oddity

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Heiko Schlittermann
Datum:  
To: exim-dev
Betreff: Re: [exim-dev] LDAP multiline attribute oddity
Graeme Fowler <graeme@???> (Mo 18 Jan 2016 20:30:49 CET):
> On Mon, 2016-01-18 at 20:19 +0100, Heiko Schlittermann wrote:
> > Thus, the the is a single value, but spread across multiple lines?
>
> Yes.
>
> > Can you show an example result from the corresponding ldapsearch
> > invocation? Probably using `ldapsearch -o ldif-wrap=no` to avoid
> > misleading massage of the message?
>
> Fails:
> msExchBlockedSendersHash::
> jxsmAM7bgwpOSNkMSMyJDXS4yRDDqJoTrrLEExefBRyjEWIhuko6KRYF/CmlUCwyQXvtN0t/ojmZEd871WkpQXnet0ZqUphI3WGhSupOdFYzvh1lSDbkacsbfG4MxoJu0bixcFsJmXG5ODFy+pcBdL8gwnn9liSGhE5djlInr5Au2/iQgQ6YkW/kGZLqEAaXTmIllz3CLpd82Led9D7QnR7zuZ8ohiqry7CsrPOhs6zbtbyszMWjsk54u7TTcnG8n2+gvh38Z8cg84DTUoi53m82Rd/cBi/jG9hg49e/U+UPq23lcalc6h8ymvMI2sH9
>
> Works:
> msExchBlockedSendersHash:: JidEA3+4BwoRuL0KBtXIIWTidTRi8ulK2EqAwA==
>
> Also works:
> msExchBlockedSendersHash:: HGNWCMrpNiGfbEMlws/YKkPhhC
> +udkgzZme6PCEUHUd0AmtHia4HUtv8GFIqAiRTVdkqXl9YcmTYg
> +NpVFsFdT8ixIWpTfOGi8kUmY8ikpp1wTOi5PHipd2SaKvoIN65YOYb3iCJE99
> +Izvoi5mP/w==


Hm, if put the output of `sed </etc/passwd | sed 's/o/ö/g' | openssl base64` into one
attribute (to get a multiline value (for me it's about 3k characters in
about 50+ lines), the result of `exim -be ${lookup ldap{ldap:///…}}}`
looks fine.

Or didn't I get it right?

LDAP is OpenLDAP.
Entry is:

dn: uid=heiko,dc=schlittermann,dc=de
uid: heiko
displayName: Heiko Schlittermann
objectClass: account
objectClass: x-MailRecipient
x-MailPrimaryAddress: hs@???
x-MailAlternateAddress: heiko@???
description:: csO2w7Z0Ong6MDowOnLDtsO2dDovcsO2w7Z0Oi9iaW4vYmFzaApkYWVtw7ZuOng6
MToxOmRhZW3Dtm46L3Vzci9zYmluOi91c3Ivc2Jpbi9uw7Zsw7ZnaW4KYmluOng6MjoyOmJpbjovY
mluOi91c3Ivc2Jpbi9uw7Zsw7ZnaW4Kc3lzOng6MzozOnN5czovZGV2Oi91c3Ivc2Jpbi9uw7Zsw7
ZnaW4Kc3luYzp4OjQ6NjU1MzQ6c3luYzovYmluOi9iaW4vc3luYwpnYW1lczp4OjU6NjA6Z2FtZXM
6L3Vzci9nYW1lczovdXNyL3NiaW4vbsO2bMO2Z2luCm1hbjp4OjY6MTI6bWFuOi92YXIvY2FjaGUv
bWFuOi91c3Ivc2Jpbi9uw7Zsw7ZnaW4KbHA6eDo3Ojc6bHA6L3Zhci9zcMO2w7ZsL2xwZDovdXNyL
...

The source of the base64 encoded string contains about 60 physical
lines, and wc -lm on the unencoded data reports different numbers for
characters and bytes.

    Best regards from Dresden/Germany
    Viele Grüße aus Dresden
    Heiko Schlittermann
-- 
 SCHLITTERMANN.de ---------------------------- internet & unix support -
 Heiko Schlittermann, Dipl.-Ing. (TU) - {fon,fax}: +49.351.802998{1,3} -
 gnupg encrypted messages are welcome --------------- key ID: F69376CE -
 ! key id 7CBF764A and 972EAC9F are revoked since 2015-01 ------------ -