m_sasl: indicate client connection type for SASL
This commit is contained in:
parent
fa2367e3f3
commit
0ee833da4a
2 changed files with 13 additions and 2 deletions
|
@ -837,6 +837,16 @@ Part of a SASL authentication exchange. The mode is 'C' to send some data
|
||||||
termination: 'A' for abort, 'F' for authentication failure, 'S' for
|
termination: 'A' for abort, 'F' for authentication failure, 'S' for
|
||||||
authentication success).
|
authentication success).
|
||||||
|
|
||||||
|
3.
|
||||||
|
encap target: *
|
||||||
|
source: server
|
||||||
|
parameters: source uid, '*', 'H', hostname, ip, tls
|
||||||
|
|
||||||
|
Provides information on a client. The "tls" data is either 'P' for a
|
||||||
|
plaintext connection or any other string for a TLS connection.
|
||||||
|
The source uid is that of an unregistered client. This is why it is not sent
|
||||||
|
as the prefix.
|
||||||
|
|
||||||
SAVE
|
SAVE
|
||||||
capab: SAVE
|
capab: SAVE
|
||||||
source: server
|
source: server
|
||||||
|
|
|
@ -180,9 +180,10 @@ m_authenticate(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *
|
||||||
|
|
||||||
if(agent_p == NULL)
|
if(agent_p == NULL)
|
||||||
{
|
{
|
||||||
sendto_one(saslserv_p, ":%s ENCAP %s SASL %s %s H %s %s",
|
sendto_one(saslserv_p, ":%s ENCAP %s SASL %s %s H %s %s %c",
|
||||||
me.id, saslserv_p->servptr->name, source_p->id, saslserv_p->id,
|
me.id, saslserv_p->servptr->name, source_p->id, saslserv_p->id,
|
||||||
source_p->host, source_p->sockhost);
|
source_p->host, source_p->sockhost,
|
||||||
|
IsSSL(source_p) ? 'S' : 'P');
|
||||||
|
|
||||||
if (source_p->certfp != NULL)
|
if (source_p->certfp != NULL)
|
||||||
sendto_one(saslserv_p, ":%s ENCAP %s SASL %s %s S %s %s",
|
sendto_one(saslserv_p, ":%s ENCAP %s SASL %s %s S %s %s",
|
||||||
|
|
Loading…
Reference in a new issue