Mercurial > dovecot > original-hg > dovecot-1.2
diff src/auth/mech-gssapi.c @ 4628:fc5ae043fdcc HEAD
POP3 service name is "pop" with GSSAPI.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 22 Sep 2006 17:55:53 +0300 |
parents | 1a35d53c18fc |
children | 2c1cc5bbc260 |
line wrap: on
line diff
--- a/src/auth/mech-gssapi.c Fri Sep 22 17:41:34 2006 +0300 +++ b/src/auth/mech-gssapi.c Fri Sep 22 17:55:53 2006 +0300 @@ -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);