From 4c9532f43230ac36236dd5159a5b3fe22a1b86ca Mon Sep 17 00:00:00 2001 From: blackhedd Date: Mon, 17 Apr 2006 00:41:49 +0000 Subject: [PATCH] Refactored ldap/pdu and ldap/filter scripts --- lib/net/ldap.rb | 3 +++ lib/net/{ldapfilter.rb => ldap/filter.rb} | 0 lib/net/{ldappdu.rb => ldap/pdu.rb} | 0 tests/testber.rb | 6 +++--- tests/testldap.rb | 6 +++--- testserver/ldapserver.rb | 6 +++--- 6 files changed, 12 insertions(+), 9 deletions(-) rename lib/net/{ldapfilter.rb => ldap/filter.rb} (100%) rename lib/net/{ldappdu.rb => ldap/pdu.rb} (100%) diff --git a/lib/net/ldap.rb b/lib/net/ldap.rb index 2ac179f..cfe10ee 100644 --- a/lib/net/ldap.rb +++ b/lib/net/ldap.rb @@ -41,6 +41,9 @@ require 'socket' +require 'net/ber' +require 'net/ldap/pdu' +require 'net/ldap/filter' module Net diff --git a/lib/net/ldapfilter.rb b/lib/net/ldap/filter.rb similarity index 100% rename from lib/net/ldapfilter.rb rename to lib/net/ldap/filter.rb diff --git a/lib/net/ldappdu.rb b/lib/net/ldap/pdu.rb similarity index 100% rename from lib/net/ldappdu.rb rename to lib/net/ldap/pdu.rb diff --git a/tests/testber.rb b/tests/testber.rb index 997499d..a9a6aa7 100644 --- a/tests/testber.rb +++ b/tests/testber.rb @@ -5,10 +5,10 @@ $:.unshift "lib" -require 'net/ber' +#require 'net/ber' require 'net/ldap' -require 'net/ldappdu' -require 'net/ldapfilter' +#require 'net/ldap/pdu' +#require 'net/ldap/filter' require 'stringio' diff --git a/tests/testldap.rb b/tests/testldap.rb index fc9f65f..4352b29 100644 --- a/tests/testldap.rb +++ b/tests/testldap.rb @@ -5,10 +5,10 @@ $:.unshift "lib" -require 'net/ber' +#require 'net/ber' require 'net/ldap' -require 'net/ldappdu' -require 'net/ldapfilter' +#require 'net/ldap/pdu' +#require 'net/ldap/filter' require 'stringio' diff --git a/testserver/ldapserver.rb b/testserver/ldapserver.rb index 64a495f..e1e946b 100644 --- a/testserver/ldapserver.rb +++ b/testserver/ldapserver.rb @@ -190,10 +190,10 @@ if __FILE__ == $0 $logger.info "adding ../lib to loadpath, to pick up dev version of Net::LDAP." $:.unshift "../lib" - require 'net/ber' - require 'net/ldappdu' + #require 'net/ber' require 'net/ldap' - require 'net/ldapfilter' + #require 'net/ldap/pdu' + #require 'net/ldap/filter' EventMachine.run { $logger.info "starting LDAP server on 127.0.0.1 port 3890"