Mombu the Programming Forum

Mombu the Programming Forum > Programming > ruby-ldap on Windows (built)
REGISTER NOW! Search Today's Posts Mark Forums Read




Reply
 
Thread Tools Search this Thread Display Modes
1 29th April 16:31
rcmn rcmn
External User
 
Posts: 1
Default ruby-ldap on Windows (built)



my goal is installing ruby with support for Mssql and LDAP on windows
XP:
//Already installed and tested:
ruby184-20.exe (on click installer)
dbi-0.1.1 (for driver ADO)

//related to my problem:
log4r-1.0.5 (installed)
Ruby-activeldap-0.7.4.gem (installed)

ruby-ldap-0.9.7 (Failed) =>
mkmf.log :
================================================== ============================
================================================== ============================
have_header: checking for ldap.h... -------------------- no

"cl -I. -Ic:/ruby/lib/ruby/1.8/i386-mswin32 -MD -Zi -O2b2xg- -G6
conftest.c -P"
checked program was:
/* begin */
#include <ldap.h>
/* end */

--------------------

have_header: checking for lber.h... -------------------- no

"cl -I. -Ic:/ruby/lib/ruby/1.8/i386-mswin32 -MD -Zi -O2b2xg- -G6
conftest.c -P"
checked program was:
/* begin */
#include <lber.h>
/* end */

--------------------

have_header: checking for ldap_ssl.h... -------------------- no

"cl -I. -Ic:/ruby/lib/ruby/1.8/i386-mswin32 -MD -Zi -O2b2xg- -G6
conftest.c -P"
checked program was:
/* begin */
#include <ldap_ssl.h>
/* end */

--------------------
================================================== ============================
================================================== ============================

i looked into c:\ruby and i can't find any of this files.
Am i missing a step ?

--
Posted via http://www.ruby-forum.com/.
  Reply With Quote
SPONSORED LINKS BY GOOGLE

 


2 29th April 16:32
francis cianfrocca
External User
 
Posts: 1
Default ruby-ldap on Windows (built)



Sorry for the offtopic, but you may find that the Net::LDAP library
meets your needs. It's pure Ruby and doesn't require a compiler.
  Reply With Quote
3 29th April 16:32
gregarican
External User
 
Posts: 1
Default ruby-ldap on Windows (built)


As far as I can recall I was able to install the MSSQL support without
incident using the Ruby DBI project in my 1.8.2 One-Click Installer for
Windows environment. As for LDAP I struggled for awhile trying to build
the Ruby/LDAP library and recently was able to stumble across the
Net::LDAP library which installs right from the command prompt without
requiring compliation.
  Reply With Quote
4 17th May 01:08
rcmn rcmn
External User
 
Posts: 1
Default ruby-ldap on Windows (built)


i've seen net::ruby like i've seen so many duplicate project.Since the
activity for net::ruby is only 76% i thought maybe it was a better
choice going with activeldap.Thank you for the pointer i will go with
Net:ruby instead.

As far as ADO i'm 100% sure i had to reinstall it.I uninstall/reinstall
ruby 3 time.For each step i have a script ready to test my install.Each
time it complain on the driver.So i had to intall --dbd_ado and it
worked after that.Also a lot of post relate on that problem.


--
Posted via http://www.ruby-forum.com/.
  Reply With Quote
5 17th May 01:08
francis cianfrocca
External User
 
Posts: 1
Default ruby-ldap on Windows (built)


Net::LDAP is definitely active. I just checked some new features into
it this evening. As far as ActiveLDAP is concerned, I've talked
several times with Will Drewry about refactoring it to run above
Net::LDAP. One of these days, someone will get around to doing that,
and then ActiveLDAP will also be usable without requiring a compiler.
  Reply With Quote
6 20th August 13:50
rcmn 73
External User
 
Posts: 1
Default ruby-ldap on Windows (built)


actually u're right about Net::LDAP i just check it and noticed it too.

That would be great if ActiveLdap get accessible without compiling.
Because i almost choose to do this project with python.I was done with
my test in less than 3 hours installation included. I was ready to go
with it but i found active_directory ,a python module, easy to use but
also very limitated.

So i decided to stick with ruby a little longer.But if net::ldap is to
much to get around in short periode i'll have to change direction.
Meanwhile rdoc and this forum are valuable resources and i'm confident
i'll be able to get it done with R.

--
Posted via http://www.ruby-forum.com/.
  Reply With Quote
7 20th August 13:51
francis cianfrocca
External User
 
Posts: 1
Default ruby-ldap on Windows (built)


Out of curiosity, what were the specific limitations you found with
the python module active_directory? I want to make sure I didn't leave
similar limitations in Net::LDAP :-).
  Reply With Quote
8 5th September 14:29
rcmn 73
External User
 
Posts: 1
Default ruby-ldap on Windows (built)


This is a very good new that Net::LDAP does not have this limitation.
As our Active directory limitation it has probably limitated to
1500.Using PHP or the DS command's i can get various result but i was
never able to get more than 1500+.And depending of the periode of the
day PHP or DS cmd would just died without any return.Anyway with the
python module i get a consitent 1500.So maybe as u mention the
limitation is an AD setting.
So i assume i will run into that limitation also with Net::LDAP...Or
Net::LDAP process search by a different way and avoid this sort of
limitation ? By getting a set of 100 then an other 100 etc ? Or is that
impossible?

--
Posted via http://www.ruby-forum.com/.
  Reply With Quote
9 5th September 14:29
francis cianfrocca
External User
 
Posts: 1
Default ruby-ldap on Windows (built)


Net::LDAP correctly implements the "paged-search" control, so there is
no limit on the number of entries you can query from A/D. If your set
is particularly large (more than 10,000 for example), then I recommend
you use the :return_result => false flag. See the rdocs for
Net::LDAP#search for more information.
  Reply With Quote
10 5th September 14:29
francis cianfrocca
External User
 
Posts: 1
Default ruby-ldap on Windows (built)


I forgot to mention: paged searches are automatic in Net::LDAP. You
don't have to write your code differently to get them.
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes







Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
Also visit Ogoun the Usenet Archive
666