>>> Hi,
>>>
>>>
>>> I have been trying to add an attribute mailReplyText for an LDAP
>>> entry. The message I was trying to store is a multiline message so I
>>> was referring to
>>>
>>> http://www.nrg4u.com/qmail/QLDAPINSTALL
>>> LDAP_REPLYTEXT (default: "mailReplyText")
>>>
>>>
>>> I tried to use base64 encoded message for that attribute but it did
>>> not work. I got autoreply with encoded message string. But if I set it
>>> in plain text (even multiline, but not encoded), it works.
>>>
>>>
>>>
>>
>> Keep in mind, that many ldap libraries do the base64 encoding and
>> decoding on the fly. Base64 encoding will only be visible in the LDIF.
>>
>>
> Hmm, but OpenLDAP does not seem to be doing it for mailReplyText. I
> could see plain text message for attribute mailReplyText until I added
> base64 encoded string.
>
>>> I am encoding this using PHP function as I am building a web
>>> application for mail users.
>>>
>>> I used functions like this base64_encode($mymessage) and
>>> chunk_split(base64_encode($mymessage)) but both base64 strings failed.
>>>
>>>
>> I remeber that doing the right conversion with php is not that easy.
>>
>>
>>
> PHP functions:
>
>
> chunk_split(base64_encode($mymessage)) worked.

simple php ldap add/modify commands without any base64_encode and
chunk_split calls worked too.

if you can use GPLed code, check squirrel_autorespond plugin's qldap
backend in http://sourceforge.net/projects/sm-plugins cvs

-- 
Tomas

Reply via email to