[CalendarServer-changes] [1416] PyKerberos/trunk/src/kerberosbasic.c
source_changes at macosforge.org
source_changes at macosforge.org
Fri Mar 23 08:54:35 PDT 2007
Revision: 1416
http://trac.macosforge.org/projects/calendarserver/changeset/1416
Author: cdaboo at apple.com
Date: 2007-03-23 08:54:35 -0700 (Fri, 23 Mar 2007)
Log Message:
-----------
Fix crash when trying to do simple Kerberos password check.
Modified Paths:
--------------
PyKerberos/trunk/src/kerberosbasic.c
Modified: PyKerberos/trunk/src/kerberosbasic.c
===================================================================
--- PyKerberos/trunk/src/kerberosbasic.c 2007-03-23 01:53:59 UTC (rev 1415)
+++ PyKerberos/trunk/src/kerberosbasic.c 2007-03-23 15:54:35 UTC (rev 1416)
@@ -16,7 +16,7 @@
* DRI: Cyrus Daboo, cdaboo at apple.com
**/
-#include <Python.h>
+#include <Python/Python.h>
#include "kerberosbasic.h"
#include <stdio.h>
@@ -118,6 +118,7 @@
static krb5_error_code verify_krb5_user(krb5_context context, krb5_principal principal, const char *password, krb5_principal server)
{
krb5_creds creds;
+ krb5_get_init_creds_opt gic_options;
krb5_error_code ret;
char *name = NULL;
@@ -132,7 +133,8 @@
free(name);
}
- ret = krb5_get_init_creds_password(context, &creds, principal, (char *)password, NULL, NULL, 0, NULL, NULL);
+ krb5_get_init_creds_opt_init(&gic_options);
+ ret = krb5_get_init_creds_password(context, &creds, principal, (char *)password, NULL, NULL, 0, NULL, &gic_options);
if (ret)
{
set_basicauth_error(context, ret);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20070323/05421af4/attachment.html
More information about the calendarserver-changes
mailing list