I am using the Java 1.3 JNDI SDK and Netscape Directory Server 4.1 to do my
LDAP operations.
When i create a new user using 'objectclasses' and try to use
createSubcontext liek as follows it shows me "SchemaViolationException".
The code is as follows
---------------------------------------
Attributes newAttributes = new BasicAttributes();
newAttributes.put(new
BasicAttribute("objectclass","organizationalperson"));
newAttributes.put(new BasicAttribute("givenName","Arthur"));
newAttributes.put(new BasicAttribute("sn","Knap"));
newAttributes.put(new BasicAttribute("cn","Arthur Knap"));
newAttributes.put(new BasicAttribute("mail","art...@endero.com"));
newAttributes.put(new BasicAttribute("uid","avdk"));
try{
DC.createSubcontext("uid=avdk,ou=members,o=root,o=BasseRoot",newAttributes);
---------------------------------------
How can i avoid it,when i use cn=avdk in place of uid=avdk also itr showing
me the same exception/
When i use Netscape SDK i have no problem but i wnat to use Java SDK.
Please help me ,it will eb a grate help.
Thanks and regards,
-Panda
I think the code is something like:
String oc [] = ["top","person","organizationalperson","organizationalperson"];
newAttributes.put(new
BasicAttribute("objectclass",oc));
Mark
But can u tell me how to add a user to a group,i am not getting any netscape
documents regarding this.
Any sample or documenst will be a greta help.
--Panda
Mark Wilcox <mewi...@unt.edu> wrote in message
news:3A2C3EAF...@unt.edu...