annotate vendor/plugins/ruby-net-ldap-0.0.4/tests/testpsw.rb @ 889:e124b1258c0b bug_83

Close obsolete branch bug_83
author Chris Cannam
date Sat, 19 Feb 2011 09:58:02 +0000
parents 513646585e45
children
rev   line source
Chris@0 1 # $Id: testpsw.rb 72 2006-04-24 21:58:14Z blackhedd $
Chris@0 2 #
Chris@0 3 #
Chris@0 4
Chris@0 5
Chris@0 6 $:.unshift "lib"
Chris@0 7
Chris@0 8 require 'net/ldap'
Chris@0 9 require 'stringio'
Chris@0 10
Chris@0 11
Chris@0 12 class TestPassword < Test::Unit::TestCase
Chris@0 13
Chris@0 14 def setup
Chris@0 15 end
Chris@0 16
Chris@0 17
Chris@0 18 def test_psw
Chris@0 19 assert_equal( "{MD5}xq8jwrcfibi0sZdZYNkSng==", Net::LDAP::Password.generate( :md5, "cashflow" ))
Chris@0 20 assert_equal( "{SHA}YE4eGkN4BvwNN1f5R7CZz0kFn14=", Net::LDAP::Password.generate( :sha, "cashflow" ))
Chris@0 21 end
Chris@0 22
Chris@0 23
Chris@0 24
Chris@0 25
Chris@0 26 end
Chris@0 27
Chris@0 28