summaryrefslogtreecommitdiffstats
path: root/src/modules/UserConfigBackendKrb5
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias@gamezock.de>2009-09-27 01:55:44 +0200
committerMatthias Schiffer <matthias@gamezock.de>2009-09-27 01:55:44 +0200
commite1d8490f0654a3da0b900407d80d91d8d0da68c8 (patch)
treed65b4bd4a596a98061e094120b6a1aed388d1c89 /src/modules/UserConfigBackendKrb5
parentd88c486ae403bee8f4b16e4bdf9daf19f8915eed (diff)
downloadmad-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.cpp24
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;