Add SASL mechanism override configuration options to auth server

master
Timothy Pearson 10 years ago
parent 74d8f852cb
commit 0bbf9f70a9

@ -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);

Loading…
Cancel
Save