From 2c95bfffaf198f5e6ce99e0c26ab7ffb0269f028 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Tue, 12 Mar 2013 19:40:46 -0500 Subject: Add debug log message to SERV command Fix multiple service handling --- servers/auth_server_lin/src/auth_conn.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'servers/auth_server_lin') diff --git a/servers/auth_server_lin/src/auth_conn.cpp b/servers/auth_server_lin/src/auth_conn.cpp index 6cf3c7b..d9794ad 100644 --- a/servers/auth_server_lin/src/auth_conn.cpp +++ b/servers/auth_server_lin/src/auth_conn.cpp @@ -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"); -- cgit v1.2.1