summaryrefslogtreecommitdiff
path: root/accel-pppd/ppp/ppp_auth.c
AgeCommit message (Collapse)Author
2018-11-27lcp: reject Authentication-Protocol option in Configure-Request packetsGuillaume Nault
If we receive a Configure-Request packet, that means the peer wants us to authenticate to him. However, none of our authentication backends (PAP, CHAP and MSCHAP v1/v2) supports authenticating ourself to the peer. Therefore, the LCP negotiation completes, but we hang in the authentication phase because accel-ppp never sends any credential. We should reject the Authentication-Protocol option found in Configure-Request packets sent by the peer. This way, the peer knows that we won't authenticate to him. Then it's up to him to keep connecting without authentication from our side or to drop the connection. This doesn't change the way we request the peer to authenticate to us. That part of the negotiation is handled by Configure-Request packets that are sent by us (not those sent by the peer). In practice some PPP clients wouldn't connect with the previous behaviour, but are perfectly happy with their Authentication-Protocol option being rejected. They just resend their Configure-Request without requesting authentication from our side. Also, since the peer_auth field of struct auth_option_t is never set anymore, we can remove the conditionals in auth_recv_conf_nak() and auth_recv_conf_rej(). Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
2018-04-03ppp: move call connect_ppp_channel to appropriate place (when noauth=1)Dmitry Kozlov
2018-03-03ppp: fix use-after-free in ppp_auth_failed()Guillaume Nault
The 'username' variable can be freed at the beginning of the function. We have to use ppp->ses.username instead. Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
2017-12-28ipoe: check noauth option in [auth] section tooDmitry Kozlov
2016-03-04ppp_auth: fixed possible use after freeDmitry Kozlov
2015-12-25ppp_auth: fixed broken noauth modeDmitry Kozlov
2015-02-20ppp: create ppp units after authenticationFrançois Cachereul
This avaid allocating a ppp unit when authentication failed Split establish_ppp in two functions estabish_ppp and connect_ppp_channel. The fist one connect the channel on an instance of /dev/ppp, allocate channel resources and start first ppp layer. The second functions create ppp unit and connect the channel to this unit. It is called after authentication. destablish_ppp is also split in two function for symmetry and ppp_terminate is adapted to handle the case when the unit is not created. Signed-off-by: François Cachereul <f.cachereul@alphalink.fr>
2014-11-22remove trailing whitespacesDmitry Kozlov
2014-07-17improved 'single session' mechanismDmitry Kozlov
2014-05-18improved single-session=replace handlingDmitry Kozlov
Wait for previous session completely terminated before continuing authorization new session.
2013-07-24ipoe: add missing EV_SES_AUTHORIZED event firingDmitry Kozlov
2013-01-24generalize single-session checkingKozlov Dmitry
2012-08-29fix typo (successed -> succeeded)Kozlov Dmitry
Conflicts: accel-pppd/ppp/ppp_auth.c
2012-06-19general preparation for IPoE integrationKozlov Dmitry
2012-06-05ppp: implemented unit cacheKozlov Dmitry
If enabled accel-pppd will not destroy interface immediately after corresponding session is terminated, instead interface will be brought down and placed to cache for later use for new sessions. It should reduce kernel interface creation/deletion rate lack and increase responsibility of daemon
2012-05-31ppp: if signle-session=replace down first session's interface before second ↵Kozlov Dmitry
comes up (should fix unexpected ospf routes deletion)
2011-12-09ppp: don't accept lcp ConfReq and similar packets after lcp was startedKozlov Dmitry
2011-09-20auth: implemented noauth optionKozlov Dmitry
2011-09-08ppp: check if session is in terminating phase before marking auth layer startedKozlov Dmitry
2011-09-02ppp: drop route of previous session before bringing up new if ↵Kozlov Dmitry
single-session=replace (make ospf happy)
2011-08-24ppp: reworked layer startup procedureKozlov Dmitry
ppp: make IPCP and IPV6CP optional depends on configuration
2011-07-16ppp: cleanup delayed works on terminationDmitry Kozlov
2011-06-02ppp: if single-session=replace check for all session to matchKozlov Dmitry
2011-06-02ppp: make auth layer started after authentication acknowledge packet sentKozlov Dmitry
2011-05-30rewrited initialization procedure (fix gcc-4.6 builds)Kozlov Dmitry
2011-04-29ppp,log_file: create per-user log file even if client was not successfuly ↵Kozlov Dmitry
authorized
2011-04-29ppp: write authentication failed message to general log tooKozlov Dmitry
2011-04-20ppp: introduced new option 'single-session' to control single session per userKozlov Dmitry
2011-01-05rename accel-pptp to accel-pppDmitry Kozlov