From e1d8490f0654a3da0b900407d80d91d8d0da68c8 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sun, 27 Sep 2009 01:55:44 +0200 Subject: Use libicu to support unicode properly; migrated ConfigManager to UnicodeString --- .../UserConfigBackendKrb5.cpp | 24 +++++++++++----------- 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'src/modules/UserConfigBackendKrb5') 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 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; -- cgit v1.2.3