auth.rb 372 B

1234567891011121314151617
  1. module Dovecot
  2. module Auth
  3. def self.has_passdb?(auth)
  4. auth.kind_of?(Hash) and auth.length > 0 and
  5. ( auth['passdb'].kind_of?(Hash) or auth['passdb'].kind_of?(Array) )
  6. end
  7. def self.has_userdb?(auth)
  8. auth.kind_of?(Hash) and auth.length > 0 and
  9. ( auth['userdb'].kind_of?(Hash) or auth['userdb'].kind_of?(Array) )
  10. end
  11. end
  12. end