diff options
author | Timothy Pearson <[email protected]> | 2013-01-12 14:26:37 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-01-12 14:26:37 -0600 |
commit | b4c09d072a95ec14e0e2bd0ae144df103d1738d6 (patch) | |
tree | 7faff65d76572c1d1777fd325571436159536e9b | |
parent | 6ce8eaff9947b48c19ddcf14cbbabb7ac990b0cb (diff) | |
download | kcmldap-b4c09d072a95ec14e0e2bd0ae144df103d1738d6.tar.gz kcmldap-b4c09d072a95ec14e0e2bd0ae144df103d1738d6.zip |
Fix bonding problems
-rw-r--r-- | src/ldapbonding.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
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())); |