diff options
| author | Steve Kemp <steve@steve.org.uk> | 2013-02-13 10:37:45 +0000 | 
|---|---|---|
| committer | Steve Kemp <steve@steve.org.uk> | 2013-02-13 10:37:45 +0000 | 
| commit | 5a290983dfb58169239b43f18f52a95b8577e8a6 (patch) | |
| tree | 9c317195cb275af1cf128e0d26be5477d3da39f7 /lib | |
| parent | 296f2af66ff144ef456b9205e2a9cdcc7e6cf8dc (diff) | |
  Updated.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/custodian/protocoltest/ldap.rb | 12 | 
1 files changed, 6 insertions, 6 deletions
| diff --git a/lib/custodian/protocoltest/ldap.rb b/lib/custodian/protocoltest/ldap.rb index 49b9b41..3e849f3 100644 --- a/lib/custodian/protocoltest/ldap.rb +++ b/lib/custodian/protocoltest/ldap.rb @@ -120,21 +120,21 @@ module Custodian              # Search              #              ldap.search(base,scope,filter,attrs)  { |entry| -              puts entry.vals('cn') +              puts "We found an LDAP result #{entry.vals('cn')}"              }              ldap.unbind              return true            else -            @error "failed to bind to LDAP server '#{@host}' with username '#{@ldap_user}' and password '#{@ldap_pass}'" +            @error = "failed to bind to LDAP server '#{@host}' with username '#{@ldap_user}' and password '#{@ldap_pass}'"              return false.            end -        rescue LDAP::ResultError => ex -          @error = "LDAP exception: #{ex} when talkign to LDAP server '#{@host}' with username '#{@ldap_user}' and password '#{@ldap_pass}'" -          return false          end +      rescue LDAP::ResultError => ex +        @error = "LDAP exception: #{ex} when talkign to LDAP server '#{@host}' with username '#{@ldap_user}' and password '#{@ldap_pass}'" +        return false        end - +    end        # | 
