sasl-server.c revision 087939d3fa9c4056419386c9d6c81f147de534cd
/* Copyright (c) 2002-2008 Dovecot authors, see the included COPYING file */
#include "common.h"
#include "base64.h"
#include "buffer.h"
#include "str-sanitize.h"
#include "auth-client.h"
#include "ssl-proxy.h"
#include "client-common.h"
#include "master.h"
static enum auth_request_flags
{
enum auth_request_flags auth_flags = 0;
return auth_flags;
}
static void
{
/* NOTE: client may be destroyed now */
}
static void
{
case MASTER_LOGIN_STATUS_OK:
break;
break;
data = "Maximum number of connections from user+IP exceeded";
break;
}
}
const char *data_base64,
{
unsigned int i;
bool nologin;
if (!client->authenticating) {
/* client aborted */
return;
}
switch (status) {
case 0:
/* continue */
data_base64, NULL);
break;
case 1:
}
/* user can't login */
}
}
if (nologin) {
} else {
}
break;
case -1:
/* parse our username if it's there */
}
}
}
break;
}
}
const char *initial_resp_base64,
{
struct auth_request_info info;
const struct auth_mech_desc *mech;
const char *error;
client->auth_attempts++;
"Unsupported authentication mechanism.");
return;
}
"Plaintext authentication disabled.");
return;
}
}
}
enum sasl_server_reply reply)
{
const char *auth_name =
t_strdup_printf("Authenticate %s failed: %s",
}
}
}
{
}
{
}