History log of /openbsd-current/usr.sbin/npppd/npppd/npppd_auth.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.23 26-Feb-2024 yasuoka

Add NAS-Identifier "npppd" for RADIUS requests. Also send Accouting-On
when RADIUS accounting is configured.


Revision tags: OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE OPENBSD_7_2_BASE OPENBSD_7_3_BASE OPENBSD_7_4_BASE
# 1.22 29-Mar-2021 yasuoka

spellings
suggested by jsg


Revision tags: OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE
# 1.21 27-Feb-2019 denis

remove unused includes

OK yasuoka@


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE
# 1.20 11-Aug-2017 goda

add a new option to set limits on user-max-sessions each AUTHENTICATION.

It can set limits on different user-max-sessions if there're using several
protocols such as PPPoE and L2TP/IPsec.

ok yasuoka@


Revision tags: OPENBSD_6_1_BASE
# 1.19 22-Feb-2017 yasuoka

Delete lines which are misleading and unneeded.
spotted patrick


Revision tags: OPENBSD_6_0_BASE
# 1.18 08-Mar-2016 yasuoka

Fix: "authconf.users_file_path" is a char[] but is checked as a char*.

Diff from Mathieu Papineau (via Claer)


Revision tags: OPENBSD_5_9_BASE
# 1.17 05-Dec-2015 mmcc

strings.h -> string.h to prevent an implicit declaration. Also remove a
bunch of NULL-checks before free().


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.16 19-Jan-2015 deraadt

move to <limits.h> universe
ok yasuoka


# 1.15 22-Aug-2014 jsg

remove an uneeded test
ok yasuoka@


Revision tags: OPENBSD_5_6_BASE
# 1.14 30-May-2014 yasuoka

Use calloc instead of malloc and memset.

from Benjamin Baier


# 1.13 22-Mar-2014 yasuoka

Fixed a bug in npppd_auth_get_user() which caused segmentation faults after
a user authentication is succeeded in case the authentication config option
has `username-suffix' and 'strip-atmark-realm' is yes. Delete
`username-prefix' from authentication setting. This config option was
mis-leading and useless.


Revision tags: OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE
# 1.12 31-Jan-2013 yasuoka

port numbers for radius servers were not configured correctly.

pointed out by mxb and Robert Blacquiere


# 1.11 22-Sep-2012 espie

gcc2 doesn't like unnamed fields. make this compile on vax again.
"looks right" deraadt@


# 1.10 18-Sep-2012 yasuoka

New configuration syntax for npppd(8). `npppd.conf' will be based on
parse.y and `npppd-users' will be based on getcap(3). Add man pages.

feedback from giovanni


Revision tags: OPENBSD_5_2_BASE
# 1.9 05-Jun-2012 yasuoka

don't use `reigai' that means `exception' in Japanese as labels.
no binary change.

from Michael W. Bombardieri


# 1.8 08-May-2012 yasuoka

Fix comments and styles. Delete unused variables and labels.
No binary changes.

ok mcbride henning


Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE
# 1.7 06-Jul-2011 yasuoka

Add RADIUS accounting support and some authentication related changes:

- Add functions to radius+.c that are required to implement RADIUS
accounting.
- Send RADIUS Account-Start and Account-Stop messages with attributes that
are defined by RFC 2866, 2868, 2869.
- If any authentication realm is deleted from the configuration, npppd may
exit by segmentation fault.
- Delete radius_common.c, radius_common.h and eap.c because they are not
used.
- Retransmission and failover are reimplemented.
- Cleanup


Revision tags: OPENBSD_4_8_BASE OPENBSD_4_9_BASE
# 1.6 02-Jul-2010 yasuoka

add $OpenBSD$ and remove trailing space. no functional change.


# 1.5 01-Jul-2010 yasuoka

Translate Japanese comments or labels into English. Translation was
done by IIJ people (MATSUI Yoshihiro, SAITOH Masanobu, Tomoyuki Sahara),
yuo@ and myself.

This diff also includes
- delete part of useless comments, correct spelling.
- add man page of npppdctl.

There is no functional change.


Revision tags: OPENBSD_4_7_BASE
# 1.4 31-Jan-2010 yasuoka

privilege separation of npppd.

- Drop privilege after daemon initializing.
- Some system calls that requires root privileges were replaced to
wrapper functions that communicate with a separated privileged
process via IPC. And the privileged process checks whether the
operations are acceptable.


# 1.3 14-Jan-2010 yasuoka

fix to compile with gcc4. (from jsg@)


# 1.2 13-Jan-2010 yasuoka

cleanup npppd code. delete IIJ local ifdef switches and fix warnings.
ok @dlg


# 1.1 11-Jan-2010 yasuoka

Initial import npppd(8). npppd is a new PPP daemon that handles many
ppp sessions as a server. It supports L2TP, PPTP and PPPoE as
tunneling.

ok mcbride@ dlg@ deraadt@ reyk@.


# 1.22 29-Mar-2021 yasuoka

spellings
suggested by jsg


Revision tags: OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE
# 1.21 27-Feb-2019 denis

remove unused includes

OK yasuoka@


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE
# 1.20 11-Aug-2017 goda

add a new option to set limits on user-max-sessions each AUTHENTICATION.

It can set limits on different user-max-sessions if there're using several
protocols such as PPPoE and L2TP/IPsec.

ok yasuoka@


Revision tags: OPENBSD_6_1_BASE
# 1.19 22-Feb-2017 yasuoka

Delete lines which are misleading and unneeded.
spotted patrick


Revision tags: OPENBSD_6_0_BASE
# 1.18 08-Mar-2016 yasuoka

Fix: "authconf.users_file_path" is a char[] but is checked as a char*.

Diff from Mathieu Papineau (via Claer)


Revision tags: OPENBSD_5_9_BASE
# 1.17 05-Dec-2015 mmcc

strings.h -> string.h to prevent an implicit declaration. Also remove a
bunch of NULL-checks before free().


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.16 19-Jan-2015 deraadt

move to <limits.h> universe
ok yasuoka


# 1.15 22-Aug-2014 jsg

remove an uneeded test
ok yasuoka@


Revision tags: OPENBSD_5_6_BASE
# 1.14 30-May-2014 yasuoka

Use calloc instead of malloc and memset.

from Benjamin Baier


# 1.13 22-Mar-2014 yasuoka

Fixed a bug in npppd_auth_get_user() which caused segmentation faults after
a user authentication is succeeded in case the authentication config option
has `username-suffix' and 'strip-atmark-realm' is yes. Delete
`username-prefix' from authentication setting. This config option was
mis-leading and useless.


Revision tags: OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE
# 1.12 31-Jan-2013 yasuoka

port numbers for radius servers were not configured correctly.

pointed out by mxb and Robert Blacquiere


# 1.11 22-Sep-2012 espie

gcc2 doesn't like unnamed fields. make this compile on vax again.
"looks right" deraadt@


# 1.10 18-Sep-2012 yasuoka

New configuration syntax for npppd(8). `npppd.conf' will be based on
parse.y and `npppd-users' will be based on getcap(3). Add man pages.

feedback from giovanni


Revision tags: OPENBSD_5_2_BASE
# 1.9 05-Jun-2012 yasuoka

don't use `reigai' that means `exception' in Japanese as labels.
no binary change.

from Michael W. Bombardieri


# 1.8 08-May-2012 yasuoka

Fix comments and styles. Delete unused variables and labels.
No binary changes.

ok mcbride henning


Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE
# 1.7 06-Jul-2011 yasuoka

Add RADIUS accounting support and some authentication related changes:

- Add functions to radius+.c that are required to implement RADIUS
accounting.
- Send RADIUS Account-Start and Account-Stop messages with attributes that
are defined by RFC 2866, 2868, 2869.
- If any authentication realm is deleted from the configuration, npppd may
exit by segmentation fault.
- Delete radius_common.c, radius_common.h and eap.c because they are not
used.
- Retransmission and failover are reimplemented.
- Cleanup


Revision tags: OPENBSD_4_8_BASE OPENBSD_4_9_BASE
# 1.6 02-Jul-2010 yasuoka

add $OpenBSD$ and remove trailing space. no functional change.


# 1.5 01-Jul-2010 yasuoka

Translate Japanese comments or labels into English. Translation was
done by IIJ people (MATSUI Yoshihiro, SAITOH Masanobu, Tomoyuki Sahara),
yuo@ and myself.

This diff also includes
- delete part of useless comments, correct spelling.
- add man page of npppdctl.

There is no functional change.


Revision tags: OPENBSD_4_7_BASE
# 1.4 31-Jan-2010 yasuoka

privilege separation of npppd.

- Drop privilege after daemon initializing.
- Some system calls that requires root privileges were replaced to
wrapper functions that communicate with a separated privileged
process via IPC. And the privileged process checks whether the
operations are acceptable.


# 1.3 14-Jan-2010 yasuoka

fix to compile with gcc4. (from jsg@)


# 1.2 13-Jan-2010 yasuoka

cleanup npppd code. delete IIJ local ifdef switches and fix warnings.
ok @dlg


# 1.1 11-Jan-2010 yasuoka

Initial import npppd(8). npppd is a new PPP daemon that handles many
ppp sessions as a server. It supports L2TP, PPTP and PPPoE as
tunneling.

ok mcbride@ dlg@ deraadt@ reyk@.


# 1.21 27-Feb-2019 denis

remove unused includes

OK yasuoka@


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE
# 1.20 11-Aug-2017 goda

add a new option to set limits on user-max-sessions each AUTHENTICATION.

It can set limits on different user-max-sessions if there're using several
protocols such as PPPoE and L2TP/IPsec.

ok yasuoka@


Revision tags: OPENBSD_6_1_BASE
# 1.19 22-Feb-2017 yasuoka

Delete lines which are misleading and unneeded.
spotted patrick


Revision tags: OPENBSD_6_0_BASE
# 1.18 08-Mar-2016 yasuoka

Fix: "authconf.users_file_path" is a char[] but is checked as a char*.

Diff from Mathieu Papineau (via Claer)


Revision tags: OPENBSD_5_9_BASE
# 1.17 05-Dec-2015 mmcc

strings.h -> string.h to prevent an implicit declaration. Also remove a
bunch of NULL-checks before free().


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.16 19-Jan-2015 deraadt

move to <limits.h> universe
ok yasuoka


# 1.15 22-Aug-2014 jsg

remove an uneeded test
ok yasuoka@


Revision tags: OPENBSD_5_6_BASE
# 1.14 30-May-2014 yasuoka

Use calloc instead of malloc and memset.

from Benjamin Baier


# 1.13 22-Mar-2014 yasuoka

Fixed a bug in npppd_auth_get_user() which caused segmentation faults after
a user authentication is succeeded in case the authentication config option
has `username-suffix' and 'strip-atmark-realm' is yes. Delete
`username-prefix' from authentication setting. This config option was
mis-leading and useless.


Revision tags: OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE
# 1.12 31-Jan-2013 yasuoka

port numbers for radius servers were not configured correctly.

pointed out by mxb and Robert Blacquiere


# 1.11 22-Sep-2012 espie

gcc2 doesn't like unnamed fields. make this compile on vax again.
"looks right" deraadt@


# 1.10 18-Sep-2012 yasuoka

New configuration syntax for npppd(8). `npppd.conf' will be based on
parse.y and `npppd-users' will be based on getcap(3). Add man pages.

feedback from giovanni


Revision tags: OPENBSD_5_2_BASE
# 1.9 05-Jun-2012 yasuoka

don't use `reigai' that means `exception' in Japanese as labels.
no binary change.

from Michael W. Bombardieri


# 1.8 08-May-2012 yasuoka

Fix comments and styles. Delete unused variables and labels.
No binary changes.

ok mcbride henning


Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE
# 1.7 06-Jul-2011 yasuoka

Add RADIUS accounting support and some authentication related changes:

- Add functions to radius+.c that are required to implement RADIUS
accounting.
- Send RADIUS Account-Start and Account-Stop messages with attributes that
are defined by RFC 2866, 2868, 2869.
- If any authentication realm is deleted from the configuration, npppd may
exit by segmentation fault.
- Delete radius_common.c, radius_common.h and eap.c because they are not
used.
- Retransmission and failover are reimplemented.
- Cleanup


Revision tags: OPENBSD_4_8_BASE OPENBSD_4_9_BASE
# 1.6 02-Jul-2010 yasuoka

add $OpenBSD$ and remove trailing space. no functional change.


# 1.5 01-Jul-2010 yasuoka

Translate Japanese comments or labels into English. Translation was
done by IIJ people (MATSUI Yoshihiro, SAITOH Masanobu, Tomoyuki Sahara),
yuo@ and myself.

This diff also includes
- delete part of useless comments, correct spelling.
- add man page of npppdctl.

There is no functional change.


Revision tags: OPENBSD_4_7_BASE
# 1.4 31-Jan-2010 yasuoka

privilege separation of npppd.

- Drop privilege after daemon initializing.
- Some system calls that requires root privileges were replaced to
wrapper functions that communicate with a separated privileged
process via IPC. And the privileged process checks whether the
operations are acceptable.


# 1.3 14-Jan-2010 yasuoka

fix to compile with gcc4. (from jsg@)


# 1.2 13-Jan-2010 yasuoka

cleanup npppd code. delete IIJ local ifdef switches and fix warnings.
ok @dlg


# 1.1 11-Jan-2010 yasuoka

Initial import npppd(8). npppd is a new PPP daemon that handles many
ppp sessions as a server. It supports L2TP, PPTP and PPPoE as
tunneling.

ok mcbride@ dlg@ deraadt@ reyk@.


Revision tags: OPENBSD_6_2_BASE
# 1.20 11-Aug-2017 goda

add a new option to set limits on user-max-sessions each AUTHENTICATION.

It can set limits on different user-max-sessions if there're using several
protocols such as PPPoE and L2TP/IPsec.

ok yasuoka@


Revision tags: OPENBSD_6_1_BASE
# 1.19 22-Feb-2017 yasuoka

Delete lines which are misleading and unneeded.
spotted patrick


Revision tags: OPENBSD_6_0_BASE
# 1.18 08-Mar-2016 yasuoka

Fix: "authconf.users_file_path" is a char[] but is checked as a char*.

Diff from Mathieu Papineau (via Claer)


Revision tags: OPENBSD_5_9_BASE
# 1.17 05-Dec-2015 mmcc

strings.h -> string.h to prevent an implicit declaration. Also remove a
bunch of NULL-checks before free().


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.16 19-Jan-2015 deraadt

move to <limits.h> universe
ok yasuoka


# 1.15 22-Aug-2014 jsg

remove an uneeded test
ok yasuoka@


Revision tags: OPENBSD_5_6_BASE
# 1.14 30-May-2014 yasuoka

Use calloc instead of malloc and memset.

from Benjamin Baier


# 1.13 22-Mar-2014 yasuoka

Fixed a bug in npppd_auth_get_user() which caused segmentation faults after
a user authentication is succeeded in case the authentication config option
has `username-suffix' and 'strip-atmark-realm' is yes. Delete
`username-prefix' from authentication setting. This config option was
mis-leading and useless.


Revision tags: OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE
# 1.12 31-Jan-2013 yasuoka

port numbers for radius servers were not configured correctly.

pointed out by mxb and Robert Blacquiere


# 1.11 22-Sep-2012 espie

gcc2 doesn't like unnamed fields. make this compile on vax again.
"looks right" deraadt@


# 1.10 18-Sep-2012 yasuoka

New configuration syntax for npppd(8). `npppd.conf' will be based on
parse.y and `npppd-users' will be based on getcap(3). Add man pages.

feedback from giovanni


Revision tags: OPENBSD_5_2_BASE
# 1.9 05-Jun-2012 yasuoka

don't use `reigai' that means `exception' in Japanese as labels.
no binary change.

from Michael W. Bombardieri


# 1.8 08-May-2012 yasuoka

Fix comments and styles. Delete unused variables and labels.
No binary changes.

ok mcbride henning


Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE
# 1.7 06-Jul-2011 yasuoka

Add RADIUS accounting support and some authentication related changes:

- Add functions to radius+.c that are required to implement RADIUS
accounting.
- Send RADIUS Account-Start and Account-Stop messages with attributes that
are defined by RFC 2866, 2868, 2869.
- If any authentication realm is deleted from the configuration, npppd may
exit by segmentation fault.
- Delete radius_common.c, radius_common.h and eap.c because they are not
used.
- Retransmission and failover are reimplemented.
- Cleanup


Revision tags: OPENBSD_4_8_BASE OPENBSD_4_9_BASE
# 1.6 02-Jul-2010 yasuoka

add $OpenBSD$ and remove trailing space. no functional change.


# 1.5 01-Jul-2010 yasuoka

Translate Japanese comments or labels into English. Translation was
done by IIJ people (MATSUI Yoshihiro, SAITOH Masanobu, Tomoyuki Sahara),
yuo@ and myself.

This diff also includes
- delete part of useless comments, correct spelling.
- add man page of npppdctl.

There is no functional change.


Revision tags: OPENBSD_4_7_BASE
# 1.4 31-Jan-2010 yasuoka

privilege separation of npppd.

- Drop privilege after daemon initializing.
- Some system calls that requires root privileges were replaced to
wrapper functions that communicate with a separated privileged
process via IPC. And the privileged process checks whether the
operations are acceptable.


# 1.3 14-Jan-2010 yasuoka

fix to compile with gcc4. (from jsg@)


# 1.2 13-Jan-2010 yasuoka

cleanup npppd code. delete IIJ local ifdef switches and fix warnings.
ok @dlg


# 1.1 11-Jan-2010 yasuoka

Initial import npppd(8). npppd is a new PPP daemon that handles many
ppp sessions as a server. It supports L2TP, PPTP and PPPoE as
tunneling.

ok mcbride@ dlg@ deraadt@ reyk@.