I know we fixed some bugs dealing with large attribute values in NDS 6.11. I don't know if Sun found and fixed the same problem. NDS supports very large attribute values - for example, Certificate Revocation Lists (CRLs) which can be several MB in size.

Sia Yiu wrote:
I am trying to add a binary file to an custom atrribute (switemdata). I tried two things:
1. converting the binary file to UTF-8 using ldif.exe;
2. using the "-b" flag with an entry in the LDIF, like switemdata:
3_0_25.img

I get an error on both of them:
modifying entry cn=sBox_3_0_25,ou=Firmwares,ou=Cos,o=ldap.sofaware.com
ldap_modify: Can't contact LDAP server

Here is the LDIF file:
dn: cn=sBox_3_0_25,ou=Firmwares,ou=Cos,o=ldap.sofaware.com
changetype: modify
replace: switemdata
switemdata:: 7ASvFaoIB1UoAAAA9wAAAPBYOQACAAUAAAAAAAAAAAAAAAAAAAAAAAiAGjzgBVon
 CABAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
 GgC62RsAABC6QAAYu0AAAAAABgAAQgAAAAAAAAAAAAAAABgAAEIAAAAAGAAAQgDwBUAigAQ8INCE
 ZDKoBAwAAAAATAECCAAAAAAAaBtAfAB7M3wAGiQJAHoTOAAaJBIAehNFgBo8VEVaZyHQWwMAAFqP

snip.................

The encoded portion is about 3.5MB.

The interesting thing is if the encoded value is one line or two, it
works.

I also tried a third method os using "switemdata: < file: 3_0_25.img"
with ldapmodify excluding the "-b" flag.  Strangly enough, it encodes
the binary, but only adds one line to the attribute value.

Has anyone uploaded a file larger than 3MB to iDS 5.1?
The system is W2k.
Any input is appreciated.

Sia

Reply via email to