# ActiveLDAP cannot load in script/console

**URL:** <https://discuss.rubyonrails.org/t/activeldap-cannot-load-in-script-console/33795>\
**Category:** rubyonrails-talk\
**Created:** [August 29, 2008, 7:53pm UTC](https://discuss.rubyonrails.org/t/activeldap-cannot-load-in-script-console/33795 "2008-08-29T19:53:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![11175](https://avatars.discourse-cdn.com/v4/letter/1/8edcca/32.png) [@11175](https://discuss.rubyonrails.org/u/11175)\
**Post date:** [August 29, 2008, 7:53pm UTC](https://discuss.rubyonrails.org/t/activeldap-cannot-load-in-script-console/33795/1 "2008-08-29T19:53:46Z")

</div>

I solved my problem....noobish mistake. in the config/enviroment.rb i did

require "active\_ldap"

when in fact I should have done

config.load\_paths += %W(#{RAILS\_ROOT}/vendor/activeldap-trunk/lib) config.plugin\_paths += %W(#{RAILS\_ROOT}/vendor/activeldap-trunk/rails/plugin)

to load the plug-in.

Also i didn't use the gem version of this plug-in....
