diff options
author | Matthias Schiffer <matthias@gamezock.de> | 2009-09-27 01:55:44 +0200 |
---|---|---|
committer | Matthias Schiffer <matthias@gamezock.de> | 2009-09-27 01:55:44 +0200 |
commit | e1d8490f0654a3da0b900407d80d91d8d0da68c8 (patch) | |
tree | d65b4bd4a596a98061e094120b6a1aed388d1c89 /src/modules/UserConfigBackendKrb5 | |
parent | d88c486ae403bee8f4b16e4bdf9daf19f8915eed (diff) | |
download | mad-e1d8490f0654a3da0b900407d80d91d8d0da68c8.tar mad-e1d8490f0654a3da0b900407d80d91d8d0da68c8.zip |
Use libicu to support unicode properly; migrated ConfigManager to UnicodeString
Diffstat (limited to 'src/modules/UserConfigBackendKrb5')
-rw-r--r-- | src/modules/UserConfigBackendKrb5/UserConfigBackendKrb5.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/modules/UserConfigBackendKrb5/UserConfigBackendKrb5.cpp b/src/modules/UserConfigBackendKrb5/UserConfigBackendKrb5.cpp index b10dbcf..475a689 100644 --- a/src/modules/UserConfigBackendKrb5/UserConfigBackendKrb5.cpp +++ b/src/modules/UserConfigBackendKrb5/UserConfigBackendKrb5.cpp @@ -92,7 +92,7 @@ bool UserConfigBackendKrb5::handleConfigEntry(const Core::ConfigEntry &entry, bo if(!entry[0].getKey().matches("UserManager")) return false; - if(entry[1].empty()) + if(entry[1].isEmpty()) return true; if(!entry[1].getKey().matches("Krb5")) @@ -101,26 +101,26 @@ bool UserConfigBackendKrb5::handleConfigEntry(const Core::ConfigEntry &entry, bo boost::lock_guard<boost::mutex> lock(mutex); if(entry[2].getKey().matches("Realm")) { - if(entry[3].empty()) - realm = entry[2][0]; + if(entry[3].isEmpty()) + realm = entry[2][0].extract(); } else if(entry[2].getKey().matches("Principal")) { - if(entry[3].empty()) - principal = entry[2][0]; + if(entry[3].isEmpty()) + principal = entry[2][0].extract(); } else if(entry[2].getKey().matches("Server")) { - if(entry[3].empty()) - server = entry[2][0]; + if(entry[3].isEmpty()) + server = entry[2][0].extract(); } else if(entry[2].getKey().matches("Password")) { - if(entry[3].empty()) - password = entry[2][0]; + if(entry[3].isEmpty()) + password = entry[2][0].extract(); } else if(entry[2].getKey().matches("Keytab")) { - if(entry[3].empty()) - keytab = entry[2][0]; + if(entry[3].isEmpty()) + keytab = entry[2][0].extract(); } - else if(!entry[2].empty()) + else if(!entry[2].isEmpty()) return false; return true; |