Add strict-oidentd mode
authorMichael Marley <michael@michaelmarley.com>
Tue, 3 Apr 2018 18:21:11 +0000 (14:21 -0400)
committerManuel Nickschas <sputnick@quassel-irc.org>
Mon, 7 May 2018 20:38:41 +0000 (22:38 +0200)
commitf932e5c8a0ec3ff689686a71c32ee61a428c4340
treee478ead31cf07a007d8475624af9d3a42929aed4
parent0dbec2cfc937857d66a9645249f876f1e6b3f05e
Add strict-oidentd mode

This mode is disabled by default.  When specified, this restricts
authoratative ident responses to be the authuser account name.

This is a cut-down version of,
https://github.com/quassel/quassel/pull/164 which was originally
authored by @esainane.  @AlD requested that the database schema
change be removed, but the request fell dormant and was eventually
closed.  This version removes the schema change as requested,
always using the user's core username as the ident when enabled.

Co-authored-by: Sai Nane <esainane+github@gmail.com>
Co-authored-by: Michael Marley <michael@michaelmarley.com>
15 files changed:
src/common/main.cpp
src/core/SQL/PostgreSQL/select_authusername.sql [new file with mode: 0644]
src/core/SQL/SQLite/select_authusername.sql [new file with mode: 0644]
src/core/core.cpp
src/core/core.h
src/core/coresession.cpp
src/core/coresession.h
src/core/oidentdconfiggenerator.cpp
src/core/oidentdconfiggenerator.h
src/core/postgresqlstorage.cpp
src/core/postgresqlstorage.h
src/core/sql.qrc
src/core/sqlitestorage.cpp
src/core/sqlitestorage.h
src/core/storage.h