dcsimg
Adding a user to GRoup in LDAP
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   user_2003
Posted On:   Wednesday, June 11, 2003 08:42 AM

how do I add an existing user to a group in ldap(ibm secure directory) using jndi?



I tried using this code:

mods[0] = new ModificationItem(ctx.ADD_ATTRIBUTE,
new BasicAttribute("member", "cn=user1, ou=company, o=ibm, c=us" ));
ctx.modifyAttributes("cn=group, ou=company,o=ibm,c=us", mods);


but user1, is not beign assigned?
can anyone let me know where I am going wrong, and how Can I solve this problem?

About | Sitemap | Contact