I need to add and remove users from...
Articles and Tips: qna
01 Jul 2003
Q.
I need to add and remove users from eDirectory groups. How would I do this using the NWDir UCS component?
A.
You can use the NWDir component. You will need to get the Member attribute of the group object and set its value to what you want. You also have to adjust the user's groupmembership attribute.
I have uploaded some sample code on the Novell Forge website at http://forge.novell.com/modules/xfmod/sample/?group_id=1126 entitled "Using UCX/NWDir to Create a User." Look in the createuser file. It is in perl, but NWDir is fairly similar in all languages.
* Originally published in Novell AppNotes
Disclaimer
The origin of this information may be internal or external to Novell. While Novell makes all reasonable efforts to verify this information, Novell does not make explicit or implied claims to its validity.