diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-03-12 19:40:46 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-03-12 19:40:46 -0500 |
commit | 2c95bfffaf198f5e6ce99e0c26ab7ffb0269f028 (patch) | |
tree | 0307dccd2b37abb41dea35aa5badbe8d4ff42a95 /servers/auth_server_lin | |
parent | fa92a1eb3c17bb6a821d8f44d67e4463d7dcc1ea (diff) | |
download | ulab-2c95bfffaf198f5e6ce99e0c26ab7ffb0269f028.tar.gz ulab-2c95bfffaf198f5e6ce99e0c26ab7ffb0269f028.zip |
Add debug log message to SERV command
Fix multiple service handling
Diffstat (limited to 'servers/auth_server_lin')
-rw-r--r-- | servers/auth_server_lin/src/auth_conn.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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"); |