On Thu, May 29, 2003 at 09:15:23AM -0700, Neo - wrote:
> This is follow-up  of my pervious question ...when i try to add values say 
> 
> CN=" test"; (Having a white space character in front)
>  
> or name =" "; (null value)

If you are using LDIF tou output the entries then any attribute
where the value starts with a space or a : or contains non-ascii
characters will be base64 encoded.

>  
> i expected the values as cn= test;
> but when i read the cn attribute in directroy server its giving me in non readable 
> format like  VGVzdCwgT3RoZXIgVGVsICA=

perl -MMIME::Base64=decode_base64 -le 'print  
decode_base64("VGVzdCwgT3RoZXIgVGVsICA=")' | hexdump -C
00000000  54 65 73 74 2c 20 4f 74  68 65 72 20 54 65 6c 20  |Test, Other Tel |
00000010  20 0a                                             | .|

Its odd that Net::LDAP::LDIF would output that in b64, I assume
you are using the LDIF module to output the entry ? Can you post
the code you use to fetch and display the entry

Graham.

Reply via email to