Add debug log message to SERV command

Fix multiple service handling
master
Timothy Pearson 11 years ago
parent fa92a1eb3c
commit 2c95bfffaf

@ -579,7 +579,7 @@ void AuthSocket::commandLoop() {
// Find the service ID for the specified client library name
TQInt32List sidList;
m_databaseServiceTypesCursor->select(TQString("client_library='%1'").arg(libname));
if (m_databaseServiceTypesCursor->next()) {
while (m_databaseServiceTypesCursor->next()) {
sidList.append(m_databaseServiceTypesCursor->value("serviceid").toInt());
}
if (sidList.empty()) {
@ -636,6 +636,8 @@ void AuthSocket::commandLoop() {
updateStatistics(STATISTICS_NEW_CONNECTION_EVENT);
printf("[DEBUG] SERV request using %s:%d for %s and user %s@%s\n\r", m_srvServiceHostName.ascii(), m_srvServicePort, libname.ascii(), m_authenticatedUserName.ascii(), m_authenticatedRealmName.ascii()); fflush(stdout);
if (!m_servClientSocket) m_servClientSocket = new TDEKerberosClientSocket;
m_servClientSocket->setServiceName("ulab");

Loading…
Cancel
Save