example/posix.rb in dm-ldap-adapter-0.3.1 vs example/posix.rb in dm-ldap-adapter-0.3.2
- old
+ new
@@ -17,9 +17,13 @@
dummy = true #uncomment this to use dummy, i.e. a database instead of ldap
dummy = false # uncomment this to use ldap
unless dummy
require 'ldap_resource'
+
+ # comment this out if you want to use "net/ldap"
+ require 'ldap/ruby_ldap_facade'
+
require 'adapters/ldap_adapter'
DataMapper.setup(:default, {
:adapter => 'ldap',
:host => 'localhost',