|
|
@ -506,11 +506,17 @@ int LDAPConfig::bondRealm(LDAPRealmConfig realmcfg, TQString adminUserName, cons
|
|
|
|
|
|
|
|
|
|
|
|
// Success!
|
|
|
|
// Success!
|
|
|
|
kadminProc.writeLine("quit", true);
|
|
|
|
kadminProc.writeLine("quit", true);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
realmcfg.bonded = true;
|
|
|
|
|
|
|
|
save();
|
|
|
|
return 0;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (prompt == "kadmin>") {
|
|
|
|
else if (prompt == "kadmin>") {
|
|
|
|
// Success!
|
|
|
|
// Success!
|
|
|
|
kadminProc.writeLine("quit", true);
|
|
|
|
kadminProc.writeLine("quit", true);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
realmcfg.bonded = true;
|
|
|
|
|
|
|
|
save();
|
|
|
|
return 0;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -525,6 +531,8 @@ int LDAPConfig::bondRealm(LDAPRealmConfig realmcfg, TQString adminUserName, cons
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
int LDAPConfig::unbondRealm(LDAPRealmConfig realmcfg, TQString adminUserName, const char * adminPassword, TQString adminRealm, TQString *errstr) {
|
|
|
|
int LDAPConfig::unbondRealm(LDAPRealmConfig realmcfg, TQString adminUserName, const char * adminPassword, TQString adminRealm, TQString *errstr) {
|
|
|
|
|
|
|
|
Q_UNUSED(realmcfg);
|
|
|
|
|
|
|
|
|
|
|
|
TQCString command = "kadmin";
|
|
|
|
TQCString command = "kadmin";
|
|
|
|
QCStringList args;
|
|
|
|
QCStringList args;
|
|
|
|
args << TQCString("-p") << TQCString(adminUserName+"@"+(adminRealm.upper()));
|
|
|
|
args << TQCString("-p") << TQCString(adminUserName+"@"+(adminRealm.upper()));
|
|
|
|