1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-05 16:33:12 +02:00

allow::options::sasl has been removed. Use the new and more flexible

require sasl { } block instead.
This commit is contained in:
Bram Matthys
2018-09-09 09:49:03 +02:00
parent 3f0d349e2b
commit 2935385bf2
4 changed files with 12 additions and 6 deletions
+4
View File
@@ -75,6 +75,10 @@ Minor issues fixed:
(and possibly other Linux distributions as well)
* Timeouts during server linking attempts were not displayed.
Removed:
* allow::options::sasl has been removed. Use the new and more flexible
require sasl { } block instead.
Other changes:
* Windows users may be prompted to install the Visual C++ redistributable
package for Visual Studio 2017. This is because we now build on VS 2017
-1
View File
@@ -1042,7 +1042,6 @@ struct _configflag_allow {
unsigned useip :1;
unsigned ssl :1;
unsigned nopasscont :1;
unsigned sasl :1;
};
struct _configitem_allow {
-2
View File
@@ -1704,8 +1704,6 @@ int AllowClient(aClient *cptr, struct hostent *hp, char *sockhost, char *usernam
continue;
if (aconf->flags.ssl && !IsSecure(cptr))
continue;
if (aconf->flags.sasl && (!*cptr->user->svid || isdigit(*cptr->user->svid)))
continue;
if (hp && hp->h_name)
{
hname = hp->h_name;
+8 -3
View File
@@ -4980,8 +4980,6 @@ int _conf_allow(ConfigFile *conf, ConfigEntry *ce)
allow->flags.useip = 1;
else if (!strcmp(cepp->ce_varname, "ssl"))
allow->flags.ssl = 1;
else if (!strcmp(cepp->ce_varname, "sasl"))
allow->flags.sasl = 1;
else if (!strcmp(cepp->ce_varname, "nopasscont"))
allow->flags.nopasscont = 1;
}
@@ -5182,7 +5180,14 @@ int _test_allow(ConfigFile *conf, ConfigEntry *ce)
else if (!strcmp(cepp->ce_varname, "ssl"))
{}
else if (!strcmp(cepp->ce_varname, "sasl"))
{}
{
config_error("%s:%d: The option allow::options::sasl no longer exists. "
"Please use a require sasl { } block instead, which "
"is more flexible and provides the same functionality. See "
"https://www.unrealircd.org/docs/Require_sasl_block",
cepp->ce_fileptr->cf_filename, cepp->ce_varlinenum);
errors++;
}
else if (!strcmp(cepp->ce_varname, "nopasscont"))
{}
else