KMessageBox::error(0,i18n("<qt>Unable to establish Kerberos protocol with remote server<p>Please verify that you currently hold a valid Kerberos ticket</qt>"),i18n("Connection Failed"));
}
else{
connToServerState=2;
}
}
break;
case2:
// Connection established!
// Read magic number and proto version from server
m_socket->processPendingData();
if(m_socket->canReadFrame()){
TQDataStreamds(m_socket);
ds.setPrintableData(true);
TQ_UINT32magicnum;
TQ_UINT32protover;
ds>>magicnum;
ds>>protover;
m_socket->clearFrameTail();
printf("[DEBUG] Got magic number %d and protocol version %d\n\r",magicnum,protover);fflush(stdout);
KMessageBox::error(0,i18n("<qt>Unable to establish Kerberos protocol with remote server<p>Please verify that you currently hold a valid Kerberos ticket</qt>"),i18n("Connection Failed"));
}
else{
connToServerState=2;
}
}
break;
case2:
// Connection established!
// Read magic number and proto version from server
m_socket->processPendingData();
if(m_socket->canReadFrame()){
TQDataStreamds(m_socket);
ds.setPrintableData(true);
TQ_UINT32magicnum;
TQ_UINT32protover;
ds>>magicnum;
ds>>protover;
m_socket->clearFrameTail();
printf("[DEBUG] Got magic number %d and protocol version %d\n\r",magicnum,protover);fflush(stdout);
// Request connection to backend server
ds<<TQString("SERV");
m_socket->writeEndOfFrame();
ds<<TQString(CLIENT_LIBRARY);
m_socket->writeEndOfFrame();
connToServerState=3;
}
break;
case3:
// Read response from server
m_socket->processPendingData();
if(m_socket->bytesAvailable()>0){
TQDataStreamds(m_socket);
ds.setPrintableData(true);
TQStringresponse;
ds>>response;
m_socket->clearFrameTail();
printf("[RAJA DEBUG 400.0] Got '%s' from the server\n\r",response.ascii());fflush(stdout);
KMessageBox::error(0,i18n("<qt>Unable to establish Kerberos protocol with remote server<p>Please verify that you currently hold a valid Kerberos ticket</qt>"),i18n("Connection Failed"));
}
else{
connToServerState=2;
}
}
break;
case2:
// Connection established!
// Read magic number and proto version from server
m_socket->processPendingData();
if(m_socket->canReadFrame()){
TQDataStreamds(m_socket);
ds.setPrintableData(true);
TQ_UINT32magicnum;
TQ_UINT32protover;
ds>>magicnum;
ds>>protover;
m_socket->clearFrameTail();
printf("[DEBUG] Got magic number %d and protocol version %d\n\r",magicnum,protover);fflush(stdout);