summaryrefslogtreecommitdiffstats
path: root/src/modules/UserConfigBackendKrb5/UserConfigBackendKrb5.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/UserConfigBackendKrb5/UserConfigBackendKrb5.cpp')
-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;