[dovecot-cvs] dovecot/src/auth mech-gssapi.c,1.5.2.1,1.5.2.2

cras at dovecot.org cras at dovecot.org
Fri Sep 22 17:55:54 EEST 2006


Update of /var/lib/cvs/dovecot/src/auth
In directory talvi:/tmp/cvs-serv19267

Modified Files:
      Tag: branch_1_0
	mech-gssapi.c 
Log Message:
POP3 service name is "pop" with GSSAPI.



Index: mech-gssapi.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/mech-gssapi.c,v
retrieving revision 1.5.2.1
retrieving revision 1.5.2.2
diff -u -d -r1.5.2.1 -r1.5.2.2
--- mech-gssapi.c	16 Jun 2006 10:38:25 -0000	1.5.2.1
+++ mech-gssapi.c	22 Sep 2006 14:55:52 -0000	1.5.2.2
@@ -96,9 +96,18 @@
 	string_t *principal_name;
 	gss_buffer_desc inbuf;
 	gss_name_t gss_principal;
+	const char *service_name;
+
+	if (strcasecmp(request->service, "POP3") == 0) {
+		/* The standard POP3 service name with GSSAPI is called
+		   just "pop". */
+		service_name = "pop";
+	} else {
+		service_name = t_str_lcase(request->service);
+	}
 
 	principal_name = t_str_new(128);
-	str_append(principal_name, t_str_lcase(request->service));
+	str_append(principal_name, service_name);
 	str_append_c(principal_name, '@');
 	str_append(principal_name, my_hostname); 
 



More information about the dovecot-cvs mailing list