         # File lib/protocols/saslauth.rb, line 141
    141:                         def validate? username, psw, sysname=nil, realm=nil
    142:
    143:                                 str = [username, psw, sysname, realm].map {|m|
    144:                                         [(m || "").length, (m || "")]
    145:                                 }.flatten.pack( "nA*" * 4 )
    146:                                 send_data str
    147:
    148:                                 d = EM::DefaultDeferrable.new
    149:                                 @queries.unshift d
    150:                                 d
    151:                         end