changeset 7480:ad0f32abda6d HEAD

Don't use krb5_get_error_message(), it doesn't work with Heimdal Kerberos.
author Timo Sirainen <tss@iki.fi>
date Sun, 04 May 2008 17:05:12 +0300
parents 7871b6219480
children 768231eb84cf
files src/auth/mech-gssapi.c
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/auth/mech-gssapi.c	Sun May 04 16:57:58 2008 +0300
+++ b/src/auth/mech-gssapi.c	Sun May 04 17:05:12 2008 +0300
@@ -322,9 +322,12 @@
 	}
 	krb5_err = krb5_parse_name(ctx, princ_display_name, &princ);
 	if (krb5_err != 0) {
+		/* writing the error string would be better, but we probably
+		   rarely get here and there doesn't seem to be a standard
+		   way of getting it */
 		auth_request_log_error(&request->auth_request, "gssapi",
-				       "krb5_parse_name() failed: %s",
-				       krb5_get_error_message(ctx, krb5_err));
+				       "krb5_parse_name() failed: %d",
+				       (int)krb5_err);
 	} else {
 		/* See if the principal is authorized to act as the
 		   specified user */