def primary_source
      return :ldap if using_ldap? && !using_db?
      return :db if using_db? && !using_ldap?

      source = @options[:primary_source]
      source = source.to_sym if source.is_a?(String)

      return source if [:ldap, :db].include?(source)

      return :ldap if using_ldap?

      :db
    end
def primary_source
      return :ldap if using_ldap? && !using_db?
      return :db if using_db? && !using_ldap?

      source = @options[:primary_source]
      source = source.to_sym if source.is_a?(String)

      return source if [:ldap, :db].include?(source)

      return :ldap if using_ldap?

      :db
    end
Gets the first authentication source for this user manager.