the attribute inserted some time in base64 and some time in clearly text

Hi to all,

i have a problem with insert attributes in my ldap.

The attribute are defined in this way:

attributeTypes: ( spadaId-oid NAME 'spadaId' SYNTAX 1.3.6.1.4.1.1466.115.121.1.

15 SINGLE-VALUE X-ORIGIN 'user defined' )

But if i exec many add, the same attribute, are inserted some time encoded in base64, and some time in clearly text.

Can you help me?

I know that my english is far from being perfect, but I hope that you understood the problem

Thanks

[517 byte] By [suuupera] at [2007-11-27 5:53:11]
# 1

> Hi to all,

> i have a problem with insert attributes in my ldap.

> The attribute are defined in this way:

>

> attributeTypes: ( spadaId-oid NAME 'spadaId' SYNTAX

> 1.3.6.1.4.1.1466.115.121.1.

> 15 SINGLE-VALUE X-ORIGIN 'user defined' )

>

> But if i exec many add, the same attribute, are

> inserted some time encoded in base64, and some time

> in clearly text.

> Can you help me?

>

> I know that my english is far from being perfect, but

> I hope that you understood the problem

> Thanks

If you are viewing the attribute value in LDIF format then values which are in non-ascii format ("SAFE-UTF8-CHAR", as per the RFC) will be in base64 encoded (refer RFC 2849 )

-- RFC 2849 Note-

4) Any dn or rdn that contains characters other than those

defined as "SAFE-UTF8-CHAR", or begins with a character other

than those defined as "SAFE-INIT-UTF8-CHAR", above, MUST be

base-64 encoded. Other values MAY be base-64 encoded. Any

value that contains characters other than those defined as

"SAFE-CHAR", or begins with a character other than those

defined as "SAFE-INIT-CHAR", above, MUST be base-64 encoded.

Other values MAY be base-64 encoded.

8) Values or distinguished names that end with SPACE SHOULD be

base-64 encoded.

-

Regards

Randip Malakar

Randip_Malakara at 2007-7-12 15:45:51 > top of Java-index,Web & Directory Servers,Directory Servers...
# 2
Check for trailing spaces. This is the most common reason for getting base64 encoded values.Ludovic
ludovicpa at 2007-7-12 15:45:51 > top of Java-index,Web & Directory Servers,Directory Servers...