summaryrefslogtreecommitdiffstats
path: root/servers/auth_server_lin/src
diff options
context:
space:
mode:
Diffstat (limited to 'servers/auth_server_lin/src')
-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);