apple / ccs-pykerberos

Python Kerberos library used by CalendarServer
https://www.calendarserver.org
Apache License 2.0
117 stars 65 forks source link

authenticate_gss_client_wrap() (PyKerberos) fails to wrap username correctly #16

Closed macosforgebot closed 14 years ago

macosforgebot commented 14 years ago

rbasch@… originally submitted this as ticket:355


In PyKerberos 1.1, authenticate_gss_client_wrap() (src/kerberosgss.c) miscalculates the length of the username string when wrapping it, by including the terminating null character in the length. This results in authentication failures. I am attaching a patch that seems to fix the problem.

macosforgebot commented 14 years ago

rbasch@… originally submitted this as attachment:pykerberos-gsswrap.patch:⁠ticket:355


patch to fix calculation of username string length

macosforgebot commented 14 years ago

@cyrusdaboo originally submitted this as comment:1:⁠ticket:355


Fixed in r4895.