- /*
- * be careful! we are assuming that the instance and realm have been
- * checked already! I used to simply copy the pname into p->user
- * but this causes too much confusion and assumes p->user will never
- * change. This makes me feel more comfortable.
- */
- if(strcmp(p->user, kdata.pname))
- {
- pop_log(p, POP_WARNING, "%s: auth failed: %s.%s@%s vs %s",
- p->client, kdata.pname, kdata.pinst, kdata.prealm, p->user);
- return(pop_msg(p,POP_FAILURE,
- "Wrong username supplied (%s vs. %s).\n", kdata.pname,
- p->user));
- }