Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Ruby LDAP --- Hooray!!

Reply
Thread Tools

Ruby LDAP --- Hooray!!

 
 
gregarican
Guest
Posts: n/a
 
      07-28-2006
After unsuccessfully trying to compile a Ruby LDAP implementation a
year or so ago I found another project on Rubyforge
(http://rubyforge.org/projects/net-ldap/) that easily accomplished the
task in my Windows One-Click Installer Ruby environment. It was as easy
as typing in ruby setup.rb! I am so thankful for the good work
performed by the project maintainer(s) and wanted to express this. Now
I can work on automating some spam filtering with my upstream mail
scanning host. And do so using Ruby rather than an alternative
language. Once again, thanks for the job well done!

 
Reply With Quote
 
 
 
 
Francis Cianfrocca
Guest
Posts: n/a
 
      07-28-2006
Thanks. Let us know here if you hit any problems with the library or
if you have any feature requests. Sounds like you may be doing more
with Net::LDAP than just bind-authenticating users, so I'll be curious
to follow your progress.

On 7/28/06, gregarican <(E-Mail Removed)> wrote:
> After unsuccessfully trying to compile a Ruby LDAP implementation a
> year or so ago I found another project on Rubyforge
> (http://rubyforge.org/projects/net-ldap/) that easily accomplished the
> task in my Windows One-Click Installer Ruby environment. It was as easy
> as typing in ruby setup.rb! I am so thankful for the good work
> performed by the project maintainer(s) and wanted to express this. Now
> I can work on automating some spam filtering with my upstream mail
> scanning host. And do so using Ruby rather than an alternative
> language. Once again, thanks for the job well done!
>
>
>


 
Reply With Quote
 
 
 
 
gregarican
Guest
Posts: n/a
 
      07-28-2006
For this one task all I am doing is pulling the Exchange Server global
address book through LDAP and uploading the derived list to an upstream
provider that helps us filter out spam e-mail messages. It's just a
quick pull and the library you have made things a snap. It's all done
now.

There was another project I was considering moving to LDAP. Right now I
have a mobile CRM app that uses Exchange CDO for storing the contact
details. Rather than use this (clunky) storage method I am thinking
about moving the contact store over to an lighter weight LDAP tree. I
have OpenLDAP Server on my development box and did some modeling of how
things would work. Seems like a good possibility down the road
sometime. Right now things work fine in regards to what's already been
done. It's just a fine tuning matter to improve things whenever I find
the time.

Francis Cianfrocca wrote:
> Thanks. Let us know here if you hit any problems with the library or
> if you have any feature requests. Sounds like you may be doing more
> with Net::LDAP than just bind-authenticating users, so I'll be curious
> to follow your progress.
>
> On 7/28/06, gregarican <(E-Mail Removed)> wrote:
> > After unsuccessfully trying to compile a Ruby LDAP implementation a
> > year or so ago I found another project on Rubyforge
> > (http://rubyforge.org/projects/net-ldap/) that easily accomplished the
> > task in my Windows One-Click Installer Ruby environment. It was as easy
> > as typing in ruby setup.rb! I am so thankful for the good work
> > performed by the project maintainer(s) and wanted to express this. Now
> > I can work on automating some spam filtering with my upstream mail
> > scanning host. And do so using Ruby rather than an alternative
> > language. Once again, thanks for the job well done!
> >
> >
> >


 
Reply With Quote
 
Ola Bini
Guest
Posts: n/a
 
      07-28-2006
Francis Cianfrocca wrote:
> Thanks. Let us know here if you hit any problems with the library or
> if you have any feature requests. Sounds like you may be doing more
> with Net::LDAP than just bind-authenticating users, so I'll be curious
> to follow your progress.
>
>


I'm also using it, and it's really good. I'm actually specifically _not_
doing authentication with LDAP in Ruby (centralized CAS server), but I
am using LDAP as one of several data sources feeding a Rails
application. I must say that your overloading of & and | for combining
filters was most inspired. The only missing part is real prefix notation
for it, but I guess I can manage without. =)

Regards
--
Ola Bini (http://ola-bini.blogspot.com)
JvYAML, RbYAML, JRuby and Jatha contributor
System Developer, Karolinska Institutet (http://www.ki.se)
OLogix Consulting (http://www.ologix.com)

"Yields falsehood when quined" yields falsehood when quined.



 
Reply With Quote
 
Francis Cianfrocca
Guest
Posts: n/a
 
      07-28-2006
Out of curiosity, what kind of identities are you storing in Exchange
(and maybe LDAP someday) to support your mobile CRM? are they people
who work for your company? or people who are your company's
customers/vendors/partners?

(I ask because I'm thinking ahead about some business-oriented
enhancements to the LDAP library.)

On 7/28/06, gregarican <(E-Mail Removed)> wrote:
> For this one task all I am doing is pulling the Exchange Server global
> address book through LDAP and uploading the derived list to an upstream
> provider that helps us filter out spam e-mail messages. It's just a
> quick pull and the library you have made things a snap. It's all done
> now.
>
> There was another project I was considering moving to LDAP. Right now I
> have a mobile CRM app that uses Exchange CDO for storing the contact
> details. Rather than use this (clunky) storage method I am thinking
> about moving the contact store over to an lighter weight LDAP tree. I
> have OpenLDAP Server on my development box and did some modeling of how
> things would work. Seems like a good possibility down the road
> sometime. Right now things work fine in regards to what's already been
> done. It's just a fine tuning matter to improve things whenever I find
> the time.
>
> Francis Cianfrocca wrote:
> > Thanks. Let us know here if you hit any problems with the library or
> > if you have any feature requests. Sounds like you may be doing more
> > with Net::LDAP than just bind-authenticating users, so I'll be curious
> > to follow your progress.
> >
> > On 7/28/06, gregarican <(E-Mail Removed)> wrote:
> > > After unsuccessfully trying to compile a Ruby LDAP implementation a
> > > year or so ago I found another project on Rubyforge
> > > (http://rubyforge.org/projects/net-ldap/) that easily accomplished the
> > > task in my Windows One-Click Installer Ruby environment. It was as easy
> > > as typing in ruby setup.rb! I am so thankful for the good work
> > > performed by the project maintainer(s) and wanted to express this. Now
> > > I can work on automating some spam filtering with my upstream mail
> > > scanning host. And do so using Ruby rather than an alternative
> > > language. Once again, thanks for the job well done!
> > >
> > >
> > >

>
>
>


 
Reply With Quote
 
Francis Cianfrocca
Guest
Posts: n/a
 
      07-28-2006
Ola Bini wrote:
> filters was most inspired. The only missing part is real prefix

notation
> for it, but I guess I can manage without. =)


Ola, if I understand you correctly, you're looking for standard RFC-2254
filter syntax. Things like (for example):
(&(objectclass=person)(mail=ola*))

If that's what you need, it's there now. Look in the Rdoc for
Net::LDAP::Filter#construct, which will accept a string like the above.
The reason we didn't support the standard filter syntax originally was
because IMHO it sucks and we wanted to give people a better
alternative. The recommended way to do filters in Net::LDAP is with the
original API, but we supported the standard filter-syntax because
several people requested it.

--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
Ola Bini
Guest
Posts: n/a
 
      07-28-2006
Francis Cianfrocca wrote:
> Ola Bini wrote:
> > filters was most inspired. The only missing part is real prefix

> notation
>> for it, but I guess I can manage without. =)

>
> Ola, if I understand you correctly, you're looking for standard RFC-2254
> filter syntax. Things like (for example):
> (&(objectclass=person)(mail=ola*))
>
> If that's what you need, it's there now. Look in the Rdoc for
> Net::LDAP::Filter#construct, which will accept a string like the above.
> The reason we didn't support the standard filter syntax originally was
> because IMHO it sucks and we wanted to give people a better
> alternative. The recommended way to do filters in Net::LDAP is with the
> original API, but we supported the standard filter-syntax because
> several people requested it.
>


Haha, yes, I know it's there, but not as language syntax. That was the
neat part about the filter combinations, IMHO.

Regarding the standard LDAP filter syntax... well, I'm an avid Lisp
lover, so, me likes it quite much. =) Each to his own. But your version
is better from a Ruby perspective, of course.

--
Ola Bini (http://ola-bini.blogspot.com)
JvYAML, RbYAML, JRuby and Jatha contributor
System Developer, Karolinska Institutet (http://www.ki.se)
OLogix Consulting (http://www.ologix.com)

"Yields falsehood when quined" yields falsehood when quined.



 
Reply With Quote
 
Francis Cianfrocca
Guest
Posts: n/a
 
      07-28-2006
Ola Bini wrote:
> Haha, yes, I know it's there, but not as language syntax. That was

the
> neat part about the filter combinations, IMHO.


Now I get it. So perhaps something like:

AND (filter-branch-1, filter-branch-2)

rather than:

filter-branch-1 & filter-branch-2


Correct?

--
Posted via http://www.ruby-forum.com/.

 
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
Net::LDAP vs ruby/ldap dacat Ruby 3 05-18-2007 10:28 AM
Performance: Ruby/LDAP vs. ActiveLDAP vs. Net::LDAP augustf@gmail.com Ruby 1 10-11-2006 03:54 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