From: Glen Holcomb Date: 2008-05-13T23:27:03+09:00 Subject: Re: create groups with ruby-net-ldap ------=_Part_7939_27452105.1210688822493 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Tue, May 13, 2008 at 2:15 AM, rvd5star wrote: > Hello. I was able to solve the latest two problems. > My only concern now is to assign user from one OU(Organizational Unit) > to another. > Any advice? > > Thanks. > > On May 13, 11:46 am, rvd5star wrote: > > I was able to create groups using ruby-net-ldap. > > My only problem now is how to: > > 1. retrieve users from a group > > 2. assign users from one group to another > > > > Any advice? > > > > Thanks. > > > > On May 13, 10:33 am, rvd5star wrote: > > > > > really? could you show me a code snippet on how to create > > > groups in AD with ruby-net-ldap? > > > > > Thanks in advance. > > > > > On May 12, 10:55 pm, Glen Holcomb wrote: > > > > > > [Note: parts of this message were removed to make it a legal post.] > > > > > > On Mon, May 12, 2008 at 12:30 AM, rvd5star > wrote: > > > > > I would like to add the ff. questions: > > > > > > > 1. Is there a way to change the user's group("OU") or assign to > > > > > another existing groups? > > > > > 2. Is there a way to edit/delete existing groups using > ruby-net-ldap? > > > > > > > Thanks, > > > > > rvd5star > > > > > > > On May 12, 1:28 pm, rvd5star wrote: > > > > > > hello all, > > > > > > > > I would like to ask if it's possible to add new groups in active > > > > > > directory server > > > > > > using ruby-net-ldap library. > > > > > > > > thank you. > > > > > > > > best regards, > > > > > > rvd5star > > > > > > Yes you can create groups in AD with ruby-net-ldap. > > > > > > I'm not sure what you mean by group("OU") but you can add users to a > group > > > > by adding to the member property of the group. > > > > > > Editing and deleting are also easy by setting attributes and using > the > > > > delete method. > > > > > > -- > > > > "Hey brother Christian with your high and mighty errand, Your > actions speak > > > > so loud, I can't hear a word you're saying." > > > > > > -Greg Graffin (Bad Religion) > > > From my understanding there is no direct way to do that in the LDAP protocol. You basically have to delete the object then re-create it in the desired OU. You can change the left most part of the dn but not the rest. -- "Hey brother Christian with your high and mighty errand, Your actions speak so loud, I can't hear a word you're saying." -Greg Graffin (Bad Religion) ------=_Part_7939_27452105.1210688822493--