summaryrefslogtreecommitdiffstats
path: root/servers
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-12-24 01:56:04 +0000
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-12-24 01:56:04 +0000
commit0bbf9f70a9c2c8f362000cd2f9cbc091430a816f (patch)
tree0e9f890c6bd39da5a5bd6f7af0b4f9af9f2aa30a /servers
parent74d8f852cbd4f763c1a9563b498ac90130f9ed84 (diff)
downloadulab-0bbf9f70a9c2c8f362000cd2f9cbc091430a816f.tar.gz
ulab-0bbf9f70a9c2c8f362000cd2f9cbc091430a816f.zip
Add SASL mechanism override configuration options to auth server
Diffstat (limited to 'servers')
-rw-r--r--servers/auth_server_lin/src/auth_conn.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/servers/auth_server_lin/src/auth_conn.cpp b/servers/auth_server_lin/src/auth_conn.cpp
index ddaf902..cf68f9e 100644
--- a/servers/auth_server_lin/src/auth_conn.cpp
+++ b/servers/auth_server_lin/src/auth_conn.cpp
@@ -669,6 +669,21 @@ void AuthSocket::commandLoop() {
if (!m_servClientSocket) m_servClientSocket = new TDEKerberosClientSocket;
m_servClientSocket->setServiceName("ulab");
+
+ TQStringList mechList;
+ m_config->setGroup("SASL");
+ mechList = TQStringList::split(" ", m_config->readEntry("allowed_mechanisms"), false);
+ if (mechList.count() > 0) {
+ m_servClientSocket->setAllowedMechanisms(mechList);
+ }
+ mechList = TQStringList::split(" ", m_config->readEntry("disallowed_mechanisms"), false);
+ if (mechList.count() > 0) {
+ m_servClientSocket->setDisallowedMechanisms(mechList);
+ }
+ mechList = TQStringList::split(" ", m_config->readEntry("override_mechanism_list"), false);
+ if (mechList.count() > 0) {
+ m_servClientSocket->setMechanismOverrideList(mechList);
+ }
m_servClientSocket->setServerFQDN(m_srvServiceHostName);
m_servClientSocket->connectToHost(m_srvServiceHostName, m_srvServicePort);