All of lore.kernel.org
 help / color / mirror / Atom feed
From: John Haxby <john.haxby@oracle.com>
To: "Daniel P. Berrange" <berrange@redhat.com>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] PATCH: 6/9: Add SASL authentication support
Date: Fri, 27 Feb 2009 11:14:18 +0000	[thread overview]
Message-ID: <49A7CB0A.2070801@oracle.com> (raw)
In-Reply-To: <20090227104623.GD23877@redhat.com>

Daniel P. Berrange wrote:
> On Thu, Feb 26, 2009 at 11:56:24AM +0000, Daniel P. Berrange wrote:
>   
>> diff -r 0eb0b12c0673 vnc-auth-sasl.c
>> --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
>> +++ b/vnc-auth-sasl.c	Mon Feb 23 13:40:03 2009 +0000
>> +
>> +#include "vnc.h"
>> +
>> +/* Max amount of data we send/recv for SASL steps to prevent DOS */
>> +#define SASL_DATA_MAX_LEN (1024 * 1024)
>> +
>>     
>
>
> FYI, last time I posted this series, a question was raised about whether
> this limit is large enough for Windows Kerberos tickets with lots of
> groups. I've done a little googling and found this MicroSoft technote
>
> http://technet.microsoft.com/en-us/library/cc756101.aspx
>
>   "Recommended Maximum Kerberos Settings
>
>   The maximum recommended size for a Kerberos ticket is 65,535 bytes, 
>   which is configured through the MaxTokenSize REG_DWORD value in the 
>   registry (HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Lsa\Kerberos\Parameters).
>   Increasing this value from the default may cause errors, particularly
>   when Web browsers or Web servers are used. "
>
> Given that Microsoft recommends a max size of 65,535 bytes I think we
> should be OK with this 1MB limit on a SASL auth step. In any case this
> is only a server side sanity check, not a fundamental part of the auth
> protocol definition, so we can easily increase in future should it become
> a problem
>   
If I recall correctly, 1MB was the limit I placed on SASL authentication 
steps a while ago and while we had all kinds of trouble with large 
kerberos tickets from windows machines, it wasn't with SASL.   That code 
has been in production for a few years now.

jch

  reply	other threads:[~2009-02-27 11:14 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-26 11:39 [Qemu-devel] PATCH: 0/9: Support SASL authentication in VNC server (version 3) Daniel P. Berrange
2009-02-26 11:52 ` [Qemu-devel] PATCH: 1/9: Fix bug in TLS authenticataion Daniel P. Berrange
2009-02-26 11:52 ` [Qemu-devel] PATCH: 2/9: Enhance 'info vnc' monitor output Daniel P. Berrange
2009-02-26 11:53 ` [Qemu-devel] PATCH: 3/9: Refactor keymap code to avoid duplication Daniel P. Berrange
2009-02-26 11:53 ` [Qemu-devel] PATCH: 4/9: Move VNC structs into header file Daniel P. Berrange
2009-02-26 11:55 ` [Qemu-devel] PATCH: 5/9: Move TLS auth into separate file Daniel P. Berrange
2009-02-26 11:56 ` [Qemu-devel] PATCH: 6/9: Add SASL authentication support Daniel P. Berrange
2009-02-26 18:57   ` Blue Swirl
2009-02-26 20:33     ` Daniel P. Berrange
2009-02-26 21:34   ` Anthony Liguori
2009-02-27 10:46   ` Daniel P. Berrange
2009-02-27 11:14     ` John Haxby [this message]
2009-02-26 11:56 ` [Qemu-devel] PATCH: 7/9: Include auth credentials in 'info vnc' Daniel P. Berrange
2009-02-26 11:57 ` [Qemu-devel] PATCH: 8/9: Support ACLs for controlling VNC access Daniel P. Berrange
2009-02-26 22:05   ` Anthony Liguori
2009-02-26 22:07   ` Anthony Liguori
2009-02-27 10:42     ` Daniel P. Berrange
2009-02-26 11:57 ` [Qemu-devel] PATCH: 9/9: Persist ACLs in external files Daniel P. Berrange
  -- strict thread matches above, loose matches on Subject: below --
2009-03-02 12:31 [Qemu-devel] PATCH: 0/9: Support SASL authentication in VNC server (version 4) Daniel P. Berrange
2009-03-02 12:41 ` [Qemu-devel] PATCH: 6/9: Add SASL authentication support Daniel P. Berrange

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=49A7CB0A.2070801@oracle.com \
    --to=john.haxby@oracle.com \
    --cc=berrange@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.