YES.
but I changed to
env.put(Context.PROVIDER_URL, "ldap://localhost:10389/");
because 12389 not found.
after run I get following exception
javax.naming.NamingException: [LDAP: error code 54 - LOOP_DETECT: failed for
Modify Request
Object : '2.5.4.3=nis,2.5.4.11=schema'
Modification[0]
Operation : replace
Modification
m-disabled: FALSE
: Comparator with OID 1.3.6.1.4.1.4203.1.2.1 already registered!]; remaining
name 'cn=nis,ou=schema'
at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3002)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2931)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2737)
at com.sun.jndi.ldap.LdapCtx.c_modifyAttributes(LdapCtx.java:1437)
at
com.sun.jndi.toolkit.ctx.ComponentDirContext.p_modifyAttributes(ComponentDirContext.java:255)
at
com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.modifyAttributes(PartialCompositeDirContext.java:172)
at
com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.modifyAttributes(PartialCompositeDirContext.java:161)
at
javax.naming.directory.InitialDirContext.modifyAttributes(InitialDirContext.java:148)
at
test.ldap.activate_schem.ActivateSchem.activate(ActivateSchem.java:57)
at test.ldap.activate_schem.ActivateSchem.main(ActivateSchem.java:21)
--
View this message in context:
http://www.nabble.com/Got-more-than-one-attributeType-for-oid-of-%22uidNumber%22-tp21093034p21125536.html
Sent from the Apache Directory Project mailing list archive at Nabble.com.