[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

barjunk

8/12/2006

Are folks just using net/ldap or are there some other ldap libraries
that folks prefer?

What I'd like is to be able to bind to the server then make multiple
queries, modifications, etc.

Thanks for any guidance.

Mike B.

3 Answers

greg.kujawa

8/12/2006 12:23:00 AM

0

Personally I use net/ldap and for my needs it does the job. Plus I use
the Ruby One-Click Installer for Windows so compiling another LDAP
library is a bit of a stretch for me.

I haven't looked at the docs lately. Is this library lacking the
ability to open an LDAP session and then post multiple calls against it
later on?

barjunk wrote:
> Are folks just using net/ldap or are there some other ldap libraries
> that folks prefer?
>
> What I'd like is to be able to bind to the server then make multiple
> queries, modifications, etc.
>
> Thanks for any guidance.
>
> Mike B.

Austin Ziegler

8/12/2006 12:30:00 AM

0

On 8/11/06, barjunk <barjunk@attglobal.net> wrote:
> Are folks just using net/ldap or are there some other ldap libraries
> that folks prefer?
>
> What I'd like is to be able to bind to the server then make multiple
> queries, modifications, etc.

According to what Francis has told me, it should be possible to do
that with Net::LDAP, although internally it will connect and
disconnect as necessary. It is my understanding -- which could be
wrong -- that LDAP connections are rarely persistent and require
rebinding in any case, but Net::LDAP should be hiding this from you.

Net::LDAP is the only *pure* Ruby LDAP library in existence right now.
The main other way of connecting to LDAP is with ruby-ldap (or is it
ldap-ruby?) which uses bindings to a C library and requires compiling
to use.

-austin
--
Austin Ziegler * halostatue@gmail.com * http://www.halo...
* austin@halostatue.ca * http://www.halo...feed/
* austin@zieglers.ca

greg.kujawa

8/12/2006 12:32:00 AM

0

Yeah, looking at the basic test cases for the library you can define a
general LDAP session and then invoke methods against it as you see fit.
For example,

ldap = Net::LDAP.new :host => my_hostname, :port => my_port, :auth =>
my_auth

Once that ldap object is defined then it can be accessed by various
methods that come with the net/ldap library. All in all I think LDAP in
general is rather straightforward, so working with one of these
libraries shouldn't force you to reinvent the wheel or anything.

gregarican wrote:
> Personally I use net/ldap and for my needs it does the job. Plus I use
> the Ruby One-Click Installer for Windows so compiling another LDAP
> library is a bit of a stretch for me.
>
> I haven't looked at the docs lately. Is this library lacking the
> ability to open an LDAP session and then post multiple calls against it
> later on?
>
> barjunk wrote:
> > Are folks just using net/ldap or are there some other ldap libraries
> > that folks prefer?
> >
> > What I'd like is to be able to bind to the server then make multiple
> > queries, modifications, etc.
> >
> > Thanks for any guidance.
> >
> > Mike B.