Skip to content
Snippets Groups Projects
Commit e04f77fd authored by rswindell's avatar rswindell
Browse files

Added a BinkP-global setting (in the [binkp] section): "PlainAuthOnly"

(defaults to false). If you want to disable all CRAM-MD5 based authentication
for both inbound and outbound BinkIT/BinkP connections/sessions (e.g. for
trouble-shooting password mismatch issues), then set this to true.
parent baa6d66a
No related branches found
No related tags found
No related merge requests found
......@@ -604,6 +604,7 @@ function callout(addr, scfg, locks, bicfg)
if (bicfg === undefined)
bicfg = new BinkITCfg();
bp.system_operator = bicfg.sysop;
bp.plain_auth_only = bicfg.plain_auth_only;
bp.cb_data = {
binkitcfg:bicfg,
binkit_to_addr:addr,
......@@ -618,7 +619,8 @@ function callout(addr, scfg, locks, bicfg)
host = bp.cb_data.binkitcfg.node[addr].host;
bp.require_md5 = !(bp.cb_data.binkitcfg.node[addr].nomd5);
bp.require_crypt = !(bp.cb_data.binkitcfg.node[addr].nocrypt);
bp.plain_auth_only = bp.cb_data.binkitcfg.node[addr].plain_auth_only;
if(!bp.plain_auth_only)
bp.plain_auth_only = bp.cb_data.binkitcfg.node[addr].plain_auth_only;
}
// TODO: Force debug mode for now...
bp.debug = true;
......@@ -1075,6 +1077,7 @@ function run_inbound(sock)
binkit_locks:locks
};
bp.system_operator = bp.cb_data.binkitcfg.sysop;
bp.plain_auth_only = bp.cb_data.binkitcfg.plain_auth_only;
// TODO: Force debug mode for now...
bp.debug = true;
......
......@@ -366,6 +366,7 @@ function BinkITCfg()
else {
this.caps = f.iniGetValue('BinkP', 'Capabilities');
this.sysop = f.iniGetValue('BinkP', 'Sysop', system.operator);
this.plain_auth_only = f.iniGetValue('BinkP', 'PlainAuthOnly', false);
sects = f.iniGetSections('node:');
sects.forEach(function(section) {
var addr = section.substr(5);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment