LDAP: error code 21 - Invalid Attribute Syntax

I have written a java program to create an LDAP user. Sometime it works fine but sometimes it gives error. Detailed error is given below:

--

createLDAPAgencyUser() : Inside Exception - javax.naming.directory.InvalidAttributeValueException: [LDAP: error code 21 - Invalid Attribute Syntax]; remaining name 'uid=VINMUMBAI,ou=fci,o=cw,c=in'

javax.naming.directory.InvalidAttributeValueException: [LDAP: error code 21 - Invalid Attribute Syntax]; remaining name 'uid=VINMUMBAI,ou=fci,o=cw,c=in'

at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3001)

at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2934)

at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2740)

at com.sun.jndi.ldap.LdapCtx.c_createSubcontext(LdapCtx.java:777)

at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_createSubcontext(ComponentDirContext.java:319)

at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.createSubcontext(PartialCompositeDirContext.java:248)

at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.createSubcontext(PartialCompositeDirContext.java:236)

at javax.naming.directory.InitialDirContext.createSubcontext(InitialDirContext.java:176)

at LDAPAgencyCreation4C.createLDAPAgencyUser(LDAPAgencyCreation4C.java:123)

Stop main method.

at LDAPAgencyCreation4C.main(LDAPAgencyCreation4C.java:45)

--

Does anyone have idea to resove it, please let me know.

Thanks in advance,

Vinod Shivhare

[1518 byte] By [vinod.shivharea] at [2007-11-27 8:24:31]
# 1
I got the solution. One attribute which I was sending it's name was incorrect. Attribute names are very case sensitive. -Vinod.
vinod.shivharea at 2007-7-12 20:13:37 > top of Java-index,Core,Core APIs...