Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to do with Netscape directory SDK

2 views
Skip to first unread message

panda

unread,
Dec 6, 2000, 3:00:00 AM12/6/00
to
Hi,
as i am not getting any document so i put this question to all of u.

How to add a user to a group,i dint find any suitable information in
for java programmer's guide.

Using Java SDK we do by calling createSubcontext(DN,Attributes) or
bind(DN,Attributes) on DirContext but how to do with Netscape SDK??

My piece of code looks like
---------------------------------------
String ENTRYDN = "uid=panda,ou=members,o=iamroot";
/* Create an entry with this DN and these attributes . */
LDAPEntry myEntry = new LDAPEntry( ENTRYDN, attrs );
ldap.add(myEntry);
---------------------------------------

I want this user to belong to 'facility user' in my o = iamroot,ou=groups
and cn=all facility.

How to do this??


It will be a great help,
Thanks
-Panda

0 new messages