diff options
author | Salvatore Iovene <salvatore.iovene@intel.com> | 2011-08-03 12:08:02 +0300 |
---|---|---|
committer | Patrick Ohly <patrick.ohly@intel.com> | 2011-08-05 14:37:41 +0200 |
commit | 7411f7e8e3df028a382ec9ff04d6a12586b5ffaf (patch) | |
tree | f572508b0f3e8f87e42fc5616988ff939e749573 | |
parent | 10418e133ac8dc19a413e151acfdbe784d13486c (diff) |
Fixes BMC#21311 - item operations: authentication problem for WebDAV when using keyringbmc-21311
Use checkPassword() before trying to --print-items. This will either
prompt for the password at command line, or ask it from the keyring
if --keyring is specified (or if using the dbus server).
-rw-r--r-- | src/syncevo/Cmdline.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/syncevo/Cmdline.cpp b/src/syncevo/Cmdline.cpp index e47ca12d..518f64ab 100644 --- a/src/syncevo/Cmdline.cpp +++ b/src/syncevo/Cmdline.cpp @@ -1149,6 +1149,12 @@ bool Cmdline::run() { !ops.m_readNextItem) { source->throwError("reading items not supported"); } + + ConfigPropertyRegistry& registry = SyncConfig::getRegistry(); + BOOST_FOREACH(const ConfigProperty *prop, registry) { + prop->checkPassword(*context, m_server, *context->getProperties()); + } + err = ops.m_startDataRead("", ""); CHECK_ERROR("reading items"); list<string> luids; |