I'm using LDAPjs inside a Node.js application. My app is creating a new user as intended, but I've not been able to find an example of how to go about adding that new user to an existing group.
Given a client object
that was created with arequire('ldapjs').createClient()
call, how do I add a given user (via its DN
) to an existing group?
You would use a function like the following, supplying to it a bound client as well as the DN that you want added to the group. In this example the group's DN is hard coded for simplicity's sake: