diff options
author | Timothy Pearson <[email protected]> | 2013-02-13 21:20:45 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-02-13 21:20:45 -0600 |
commit | 20c48849ea570d4d264e83bf8a9fb52e7fcbde2e (patch) | |
tree | 0d1d0e0ead00fedadeb91a2254b3e700db580b72 /src | |
parent | a3118cb55bc12866b608441b7719c529206cfc4c (diff) | |
download | libtdeldap-20c48849ea570d4d264e83bf8a9fb52e7fcbde2e.tar.gz libtdeldap-20c48849ea570d4d264e83bf8a9fb52e7fcbde2e.zip |
Fix klist failure
Diffstat (limited to 'src')
-rw-r--r-- | src/libtdeldap.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/libtdeldap.cpp b/src/libtdeldap.cpp index 9faaecd..2b6c075 100644 --- a/src/libtdeldap.cpp +++ b/src/libtdeldap.cpp @@ -992,7 +992,7 @@ int LDAPManager::setPasswordForUser(LDAPUserInfo user, TQString *errstr) { return 1; // Failure } -TQString tdelistDateTimeToRFCDateTime(TQString datetime) { +TQString klistDateTimeToRFCDateTime(TQString datetime) { // HACK HACK HACK // FIXME TQString ret; @@ -1020,7 +1020,7 @@ TQString tdelistDateTimeToRFCDateTime(TQString datetime) { #define KLIST_STOPTIME_STRING "End time: " #define KLIST_FLAGS_STRING "Ticket flags: " #define KLIST_ADDRESSES_STRING "Ticket flags: " -#define KLIST_NO_TICKET_FILE "tdelist: No ticket file: " +#define KLIST_NO_TICKET_FILE "klist: No ticket file: " #define KLIST_KVNO_STRING "kvno" #define KLIST_ADDRESSLESS_STRING "addressless" @@ -1053,10 +1053,10 @@ KerberosTicketInfoList LDAPManager::getKerberosTicketList(TQString cache, TQStri TQString line; FILE *output; if (cache != "") { - output = popen((TQString("tdelist --cache=%1 -v 2>&1").arg(cache)).ascii(), "r"); + output = popen((TQString("klist --cache=%1 -v 2>&1").arg(cache)).ascii(), "r"); } else { - output = popen("tdelist -v 2>&1", "r"); + output = popen("klist -v 2>&1", "r"); } TQFile f; f.open(IO_ReadOnly, output); @@ -1122,7 +1122,7 @@ KerberosTicketInfoList LDAPManager::getKerberosTicketList(TQString cache, TQStri line.remove(0, strlen(KLIST_AUTHTIME_STRING)); line.replace("(expired)", ""); line = line.simplifyWhiteSpace(); - line = tdelistDateTimeToRFCDateTime(line); + line = klistDateTimeToRFCDateTime(line); ticket.authenticationTime.setTime_t(KRFCDate::parseDate(line)); ticket.informationValid = true; } @@ -1130,7 +1130,7 @@ KerberosTicketInfoList LDAPManager::getKerberosTicketList(TQString cache, TQStri line.remove(0, strlen(KLIST_STARTTIME_STRING)); line.replace("(expired)", ""); line = line.simplifyWhiteSpace(); - line = tdelistDateTimeToRFCDateTime(line); + line = klistDateTimeToRFCDateTime(line); ticket.validStartTime.setTime_t(KRFCDate::parseDate(line)); ticket.informationValid = true; } @@ -1138,7 +1138,7 @@ KerberosTicketInfoList LDAPManager::getKerberosTicketList(TQString cache, TQStri line.remove(0, strlen(KLIST_STOPTIME_STRING)); line.replace("(expired)", ""); line = line.simplifyWhiteSpace(); - line = tdelistDateTimeToRFCDateTime(line); + line = klistDateTimeToRFCDateTime(line); ticket.validEndTime.setTime_t(KRFCDate::parseDate(line)); ticket.informationValid = true; } |