Create groups with ruby-net-ldap

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

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 Mon, May 12, 2008 at 12:30 AM, rvd5star [email protected] wrote:

hello all,

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)

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.

really? could you show me a code snippet on how to create
groups in AD with ruby-net-ldap?

Thanks in advance.

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.

Hi,

2008/5/13 Glen H. [email protected]:

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.

Net::LDAP#rename.

Thanks,

On Tue, May 13, 2008 at 2:15 AM, rvd5star [email protected] wrote:

  1. retrieve users from a group
  1. Is there a way to change the user’s group(“OU”) or assign to

I would like to ask if it’s possible to add new groups in active
I’m not sure what you mean by group(“OU”) but you can add users to a
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)

On Tue, May 13, 2008 at 7:32 PM, Kouhei S. [email protected] wrote:

Net::LDAP#rename.

Thanks,

kou

That will only change the cn portion of the dn. You can’t change ou’s
with
rename.


“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)

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs