Creating LDAP (specifically, Active Directory) records

Has anyone done anything with creating LDAP records? I’ve got an app
that needs to talk to my AD domain and ideally create new accounts,
but I’m having a hard time finding information on if anyone has
published anything regarding the creation of new accounts.


Sterling A.
sterling [at] sterlinganderson.net
http://sterlinganderson.net/
608.239.8387

Sterling A. wrote:

Has anyone done anything with creating LDAP records? I’ve got an app
that needs to talk to my AD domain and ideally create new accounts,
but I’m having a hard time finding information on if anyone has
published anything regarding the creation of new accounts.


Sterling A.
sterling [at] sterlinganderson.net
http://sterlinganderson.net/
608.239.8387

If you’re talking about how to actually create LDAP records using Ruby,
look at the Net::LDAP library on Rubyforge, specifically the
Net::LDAP#add and #modify methods. If your question relates to
integrating with Rails, or to peculiarities of AD, then please ask a
more specific question.

I’ve done a bit of work on this (querying only)

Here are some resources…
http://ruby-ldap.sourceforge.net/
http://rubyforge.org/projects/ruby-activeldap/

On 12/19/06 3:15 PM, “Sterling A.” [email protected]

Sterling A. wrote:

Has anyone done anything with creating LDAP records? I’ve got an app
that needs to talk to my AD domain and ideally create new accounts,
but I’m having a hard time finding information on if anyone has
published anything regarding the creation of new accounts.


Sterling A.
sterling [at] sterlinganderson.net
http://sterlinganderson.net/
608.239.8387

Another thing I just thought of: if you’re creating records, you need to
obey the schema constraints. (Practically, there are certain required
attributes you will need to populate in order to successfully add the
record.) In A/D, some of these are built in, and you may also have some
local ones you need to worry about.

I gave an incorrect link to Net::LDAP upthread. In Rubyforge, look for
net-ldap.

Is there an update to the ruby-net-ldap package? I was hoping a new
release was out that would allow storing the returned object or record
in a session. I asked about this a few months ago and you mentioned a
newer release soon to be out. However, I recently checked and still no
joy. I’m sure your busy but is there an ETA.

Thanks,
Phill

On Dec 20 2006, 12:32 pm, Francis C.