Commit c953d831 authored by Patrick J Cherry's avatar Patrick J Cherry
Browse files

Moved suggests to recommends for spamassassin/clamd

parent 2375ec39
# encoding: UTF-8
require 'test/unit'
require 'symbiosis/domain'
class TestDomain < Test::Unit::TestCase
......@@ -82,5 +82,37 @@ class TestDomain < Test::Unit::TestCase
end
def test_password_with_foreign_shit
utf8_password = "ábë"
domain = Domain.new("test")
%w(UTF8 ISO-8859-1).each do |enc|
if utf8_password.respond_to?(:encode)
password = utf8_password.encode(enc)
else
require 'iconv' unless defined?(Iconv)
password = Iconv.conv(enc, "UTF-8", utf8_password)
end
#
# Make sure the UTF-8 password works.
#
assert(domain.check_password(password, password))
#
# Now crypy+check
#
des_crypt_password = password.crypt("ab")
assert(domain.check_password(password, des_crypt_password), "Correct password not accepted, DES crypt, #{enc} encoding.")
#
# glibc
#
glibc2_crypt_password = password.crypt("$1$ab$")
assert(domain.check_password(password, glibc2_crypt_password), "Correct password not accepted, glibc2 crypt, #{enc} encoding.")
assert(domain.check_password(utf8_password, glibc2_crypt_password), "Correct password not accepted, glibc2 crypt, #{enc} encoding.")
end
end
end
......@@ -8,10 +8,9 @@ Standards-Version: 3.9.1
Package: symbiosis-email
Architecture: all
Depends: symbiosis-common (>= 2012:0221), exim4-daemon-heavy, dovecot-imapd, dovecot-pop3d, clamav-daemon, ruby1.8, adduser, make, ${misc:Depends}
Recommends: symbiosis-webmail
Suggests: clamav-daemon, spamassassin
Replaces: bytemark-vhost-email, symbiosis-monit (<< 2011:1206), symbiosis-test
Depends: symbiosis-common (>= 2012:0221), exim4-daemon-heavy, dovecot-imapd, dovecot-pop3d, ruby1.8, adduser, make, ${misc:Depends}
Recommends: symbiosis-webmail, clamav-daemon, clamav-freshclam, spamassassin
Replaces: bytemark-vhost-email, symbiosis-monit (<< 2011:1206), symbiosis-test
Breaks: symbiosis-monit (<< 2011:1206)
Provides: bytemark-vhost-email
Conflicts: bytemark-vhost-email, symbiosis-test
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment