ruby-ldap in Netbeans

Discussion in 'Ruby' started by CraftyTech, Aug 27, 2010.

  1. CraftyTech

    CraftyTech Guest

    Hello All,

    I'm a newbie at Ruby and I have the following issue. I need to
    start writing Ruby code to manipulate Active Directory entries. When
    I do "import 'ldap' " it doesn't work since I don't have the ldap gem
    installed. (it works fine in my linux pc at home). So the questions
    is this:

    In windows[XP] using Netbeans[JRuby], how do I add a gem for LDAP, or
    LDAP functionality in any form, so that I can move on with my coding/
    testing?

    Thanks in advance,

    Henry
    CraftyTech, Aug 27, 2010
    #1
    1. Advertising

  2. Go to the Tools menu, under "Ruby Gems". I believe you can install it
    there. Is that what you're looking for?

    Also, pulling in gems is usually done like this:

    require 'rubygems'
    require 'ldap'

    - Charlie

    On Fri, Aug 27, 2010 at 11:25 PM, CraftyTech <> wrote:
    > Hello All,
    >
    > =C2=A0 =C2=A0 I'm a newbie at Ruby and I have the following issue. =C2=A0=

    I need to
    > start writing Ruby code to manipulate Active Directory entries. =C2=A0Whe=

    n
    > I do "import 'ldap' " it doesn't work since I don't have the ldap gem
    > installed. =C2=A0(it works fine in my linux pc at home). =C2=A0So the que=

    stions
    > is this:
    >
    > In windows[XP] using Netbeans[JRuby], how do I add a gem for LDAP, or
    > LDAP functionality in any form, so that I can move on with my coding/
    > testing?
    >
    > Thanks in advance,
    >
    > Henry
    >
    >
    Charles Oliver Nutter, Aug 30, 2010
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jason Wold

    using LDAP Controls in ruby-ldap

    Jason Wold, Nov 4, 2004, in forum: Ruby
    Replies:
    5
    Views:
    233
  2. Ian Macdonald
    Replies:
    0
    Views:
    209
    Ian Macdonald
    Mar 15, 2005
  3. James Hughes
    Replies:
    4
    Views:
    319
    James Hughes
    Dec 13, 2005
  4. Replies:
    1
    Views:
    196
    Austin Ziegler
    Oct 11, 2006
  5. dacat

    Net::LDAP vs ruby/ldap

    dacat, Apr 27, 2007, in forum: Ruby
    Replies:
    3
    Views:
    286
    Ian Macdonald
    May 18, 2007
Loading...

Share This Page