File: anonymous.rb

package info (click to toggle)
ruby-sasl 0.0.3.3-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 128 kB
  • sloc: ruby: 451; makefile: 2
file content (14 lines) | stat: -rw-r--r-- 293 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
module SASL
  ##
  # SASL ANONYMOUS where you only send a username that may not get
  # evaluated by the server.
  #
  # RFC 4505:
  # http://tools.ietf.org/html/rfc4505
  class Anonymous < Mechanism
    def start
      @state = nil
      ['auth', preferences.username.to_s]
    end
  end
end