From b4c09d072a95ec14e0e2bd0ae144df103d1738d6 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sat, 12 Jan 2013 14:26:37 -0600 Subject: Fix bonding problems --- src/ldapbonding.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/ldapbonding.cpp b/src/ldapbonding.cpp index 51eb7ec..4c2393b 100644 --- a/src/ldapbonding.cpp +++ b/src/ldapbonding.cpp @@ -506,11 +506,17 @@ int LDAPConfig::bondRealm(LDAPRealmConfig realmcfg, TQString adminUserName, cons // Success! kadminProc.writeLine("quit", true); + + realmcfg.bonded = true; + save(); return 0; } else if (prompt == "kadmin>") { // Success! kadminProc.writeLine("quit", true); + + realmcfg.bonded = true; + save(); 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) { + Q_UNUSED(realmcfg); + TQCString command = "kadmin"; QCStringList args; args << TQCString("-p") << TQCString(adminUserName+"@"+(adminRealm.upper())); -- cgit v1.2.1