directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sudheer Kumar <sudheerarim...@gmail.com>
Subject Re: How to bind and search binary data in Apache DS?
Date Mon, 02 Mar 2009 17:24:38 GMT
> [Sudheer] I don't really want to do this. What I want is able to store
> large Strings.  As String type has a limitation of 64K
> There are no limitation on String size in Java. You'll will only get a
> OOM if it's too big for your JVM

[Sudheer]It seems there is a limit on the size of String that LDAP
supports (I guess it is 64KB). Try saving a large String (more than 64
KB) to an attribute whose type is String. ADS will throw and exception
similar to the following:

[LDAP: error code 80 - OTHER: failed for     Modify Request
        Object :
'2.5.4.3=myLargeAttr,2.5.4.11=preferences,2.5.4.11=MyOrg,2.5.4.11=applications,0.9.2342.19200300.100.1.25=test,0.9.2342.19200300.100.1.25=com'
            Modification[0]
                Operation :  replace
                Modification
    myLargeAttr: Hello world;Hello world;world;Hello world
...........Hello world;
: null]; remaining name 'cn=
myLargeAttr,ou=Preferences,ou=MyOrg,ou=Applications,dc=test,dc=com'
	at com.sun.jndi.ldap.LdapCtx.mapErrorCode(Unknown Source)
	at com.sun.jndi.ldap.LdapCtx.processReturnCode(Unknown Source)
	at com.sun.jndi.ldap.LdapCtx.processReturnCode(Unknown Source)
	at com.sun.jndi.ldap.LdapCtx.c_modifyAttributes(Unknown Source)
	at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_modifyAttributes(Unknown
Source)
	at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.modifyAttributes(Unknown
Source)
	at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.modifyAttributes(Unknown
Source)
	at javax.naming.directory.InitialDirContext.modifyAttributes(Unknown Source)
	at com.test.jndi.ApacheDSConnector.storeUserPreferenceExt(ApacheDSConnector.java:110)
	at com.test.jndi.ApacheDSConnector.main(ApacheDSConnector.java:71)



Thanks

-- 

Sudheer Kumar Arimbra

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message