Re: [python-win32] SSPI memory problems with Kerberos?

2011-04-18 Thread Matt Hamilton
Matt Hamilton  netsight.co.uk> writes:

> Originally I was passing it a valid Kerberos ticket, but no matter what it 
> would still give me that memory error. So I decided to pass in some bogus 
> data to at least get a different error... but no dice. I always just get this 
> memory error.

After about 3 days of banging my head against the code, I finally worked
out what the issue is. So for any future people looking and getting an
error about 'Not enough memory is available to complete this request',
SEC_E_INSUFFICIENT_MEMORY then is it likely that you are sending a
Negotiate blob into a Kerberos context.

The blob I was getting from IE is a Negotiate blob, not a native Kerberos
one and so are decoded differently in ASN.1 and I guess the ASN.1
parser used by SSPI is not smart enough to work out when it is
being fed something unexpected and runs out of memory trying to 
decode what it is given. 

So make sure you are doing:

sa = sspi.ServerAuth('Negotiate')
err, sec_buffer = sa.authorize(data)

*not*

sa = sspi.ServerAuth('Kerberos')
err, sec_buffer = sa.authorize(data)


-Matt


___
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32


Re: [python-win32] [ANN] pywin32 build 215 released.

2011-04-18 Thread Nikolay Mladenov
Mark Hammond  skippinet.com.au> writes:

> 
> Hi all,
>I'm happy to announce the release of pywin32 build 215.
> 
> This release has relatively few changes since build 214, although a 
> number of bugs have been addressed - the notable changes are:
> 
> * The build process no longer includes a "manifest" in python 2.6 and 
> later versions - this should hopefully avoid failure to load the modules 
> in some environments (specifically, it should avoid "module not found" 
> type errors thrown by Windows.)

Since win32ui.pyd ( and I guess others) no longer includes vc90.CRT manifest
"import win32ui" fails from vc8 built executables. 214 and previous are working 
fine.

Thanks for the excellent software!

Nick

___
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32