Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > LDAP

Reply
 
 
barjunk
Guest
Posts: n/a
 
      08-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.

 
Reply With Quote
 
 
 
 
gregarican
Guest
Posts: n/a
 
      08-12-2006
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.


 
Reply With Quote
 
 
 
 
Austin Ziegler
Guest
Posts: n/a
 
      08-12-2006
On 8/11/06, 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.


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 * * http://www.halostatue.ca/
* * http://www.halostatue.ca/feed/
*

 
Reply With Quote
 
gregarican
Guest
Posts: n/a
 
      08-12-2006
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, ort => 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.


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
python-ldap/win32 or python/ldap/win32 rcmn Python 1 11-06-2006 11:47 PM
Need to wrtie LDAP class to *answer* LDAP queries. junk1@davidbevan.co.uk Java 1 02-21-2006 09:59 PM
ruby-ldap: uninitialized constant LDAP::LDAP_CONTROL_PAGEDRESULTS James Hughes Ruby 4 12-13-2005 11:46 PM
[ANN] Ruby/LDAP 0.9.1: LDAP API (RFC1823) library. Ian Macdonald Ruby 0 03-15-2005 11:23 PM
using LDAP Controls in ruby-ldap Jason Wold Ruby 5 11-07-2004 03:35 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57