[dovecot-cvs] dovecot/src/auth mech-gssapi.c,1.7,1.8
cras at dovecot.org
cras at dovecot.org
Fri Sep 22 17:55:56 EEST 2006
Update of /var/lib/cvs/dovecot/src/auth
In directory talvi:/tmp/cvs-serv26607
Modified Files:
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.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- mech-gssapi.c 28 Jun 2006 13:10:25 -0000 1.7
+++ mech-gssapi.c 22 Sep 2006 14:55:53 -0000 1.8
@@ -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