Age | Commit message (Collapse) | Author |
|
This callback isn't used anymore. Let's remove it from all
authentication backends.
Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
|
|
If the peer re-authenticates (because of option conf_interval) and pwdb
calls auth_result(), we may add the interval timer again to the session
context. This crashes accel-ppp when deleting the session, because the
interval timer is removed only once and the superfluous timers are
still running. Therefore, when removing the context, triton detects
this issue and calls abort().
To fix this, we need to detect if the session is already started and
just send a CHAP Success message in this case.
Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
|
|
When pwdb returns PWDB_NO_IMPL and chap_recv_response() performs the
authentication itself, it delegates this task to chap_check_response().
This function sends a CHAP Failure message if it can't retrieve the
password, but not in case of password mismatch. Since
chap_recv_response() already sends a CHAP Failure message on error,
the one sent by chap_check_response() is useless.
Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
|
|
When pwdb returns PWDB_NO_IMPL, then chap_recv_response() tries to
authenticate the peer itself. If this authentication succeeds but the
session is already started (in case of re-authentication, with option
conf_interval), no CHAP Success is sent.
This patch sends the missing CHAP Success message in this case, so that
the peer knows that its response has been received and accepted, and
that no retransmission is required.
Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
|
|
|
|
|
|
|
|
This patch gets rid of synchronuos style of authentication/accounting.
Synchronous style of authentication/accounting produced sleeping threads
which becomes a problem when lots of sessions started/stopped and all they want authorization/accounting.
|
|
|
|
already started
|
|
auth modules
Passed strings was not nullterminated
|
|
Signed-off-by: Vladislav Grishenko <themiron@mail.ru>
|
|
|
|
|
|
|
|
* l2tp: Fix allocation checking when adding octets AVP
* cli, tcp: Fix non-NULL terminated string reception
* Fix va_end() missing calls
* chap-secrets: implemented encryption
* auth_pap: make messages like other auth modules
* cli: check xmit_buf is not null at enter to write function
* pppoe: implemented regular expression support
* chap-secrets: implemented encryption
* ippool: fixed initialization order
* optional shaper compiling
* ppp: dns/wins code cleanup
|
|
Fix several errors and compiler warnings in format string
arguments.
Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
|
|
Conflicts:
accel-pppd/ppp/ppp_auth.c
|
|
|
|
|
|
generating new one
|
|
|
|
|
|
|
|
(default OPENSSL)
|
|
|
|
this value in mschap failure message
|
|
|
|
|
|
|
|
|
|
|
|
|