create base dn using jndi
<p>I am creating the basedn in openDJ using JNDI but i am getting the below error. </p>

<pre><code>javax.naming.NameNotFoundException: [LDAP: error code 32 - The provided entry dc=naren,dc=naren cannot be added because its suffix is not defined as one of the suffixes within the Directory Server]; remaining name 'dc=naren,dc=naren'
    at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3057)
    at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2978)
    at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2785)
    at com.sun.jndi.ldap.LdapCtx.c_createSubcontext(LdapCtx.java:801)      
</code></pre>

<p>The code I am using is:</p>

<pre><code>    Attribute objclass = new BasicAttribute("objectclass");
    objclass.add("ds-cfg-root-dn-user");
    attrs.put("dn","ds-cfg-backend-id=userRoot,cn=Backends,cn=config");
    ctx.createSubcontext("dc=naren,dc=naren");
    ctx.close();
</code></pre>
