#include "service_tzo.hpp"
#include "service_zoneedit.hpp"
#include "service_gnudip.hpp"
+#include "service_gnudip_fullhostname.hpp"
#include <time.h>
#include <iostream>
, DaemonMode(false)
, Syslog(false)
, EnableIPv6(false)
+ , LogPasswords(false)
, Loglevel(0)
, ConfigPath("/etc/bpdyndnsd")
, WebcheckInterval(0)
, DaemonMode(false)
, Syslog(false)
, EnableIPv6(false)
+ , LogPasswords(false)
, Loglevel(0)
, ConfigPath("/etc/bpdyndnsd")
, WebcheckInterval(0)
("daemon_mode",po::value<bool>()->default_value(false),"Run as system daemon.")
("loglevel",po::value<int>()->default_value(0),"Loglevel.")
("syslog",po::value<bool>()->default_value(false),"Use syslog facility.")
+ ("log_passwords",po::value<bool>()->default_value(false),"Log passwords in cleartext.")
("enable_ipv6",po::value<bool>()->default_value(false),"Try to use IPv6.")
("webcheck_enabled",po::value<bool>()->default_value(false),"Use webcheck url to determine actual IP address.")
("webcheck_url",po::value<string>()->default_value(""),"Use this URL to determine IP.")
if ( VariablesMap.count("syslog") )
Syslog = VariablesMap["syslog"].as<bool>();
+ if ( VariablesMap.count("log_passwords") )
+ LogPasswords = VariablesMap["log_passwords"].as<bool>();
+
if ( VariablesMap.count("enable_ipv6") )
EnableIPv6 = VariablesMap["enable_ipv6"].as<bool>();
return service;
}
}
+ else if(protocol == "gnudip-fullhostname")
+ {
+ if ( !server.empty() )
+ {
+ Service::Ptr service_gnudip_fullhostname(new ServiceGnudipFullhostname(protocol,server,hostname,login,password,Log,update_interval,max_updates_within_interval,max_equal_updates_in_succession,dns_cache_ttl,Proxy,ProxyPort));
+ return service_gnudip_fullhostname;
+ }
+ else
+ {
+ Log->print_gnudip_requires_servername();
+ Service::Ptr service;
+ return service;
+ }
+ }
else
{
Log->print_unknown_protocol(protocol);
if ( VariablesMap.count("syslog") )
Syslog = VariablesMap["syslog"].as<bool>();
+ if ( VariablesMap.count("log_passwords") )
+ LogPasswords = VariablesMap["log_passwords"].as<bool>();
+
if ( VariablesMap.count("enable_ipv6") )
EnableIPv6 = VariablesMap["enable_ipv6"].as<bool>();
/**
+ * Getter for member LogPasswords.
+ * @return True if we want to log passwords in cleartext.
+ */
+bool Config::get_log_passwords() const
+{
+ return LogPasswords;
+}
+
+
+/**
* Getter for member EnableIPv6
* @return Wether IPv6 should be used or not.
*/