Author: rhafer Date: Thu Jun 16 13:38:15 2011 New Revision: 64410 URL: http://svn.opensuse.org/viewcvs/yast?rev=64410&view=rev Log: "starttls" is optional in syncrepl configuration Modified: branches/SuSE-Code-11-SP2-Branch/ldap-server/src/agent/SlapdConfigAgent.cc Modified: branches/SuSE-Code-11-SP2-Branch/ldap-server/src/agent/SlapdConfigAgent.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/ldap-server/src/agent/SlapdConfigAgent.cc?rev=64410&r1=64409&r2=64410&view=diff ============================================================================== --- branches/SuSE-Code-11-SP2-Branch/ldap-server/src/agent/SlapdConfigAgent.cc (original) +++ branches/SuSE-Code-11-SP2-Branch/ldap-server/src/agent/SlapdConfigAgent.cc Thu Jun 16 13:38:15 2011 @@ -1787,7 +1787,11 @@ std::string basedn( argMap->value(YCPString("basedn"))->asString()->value_cstr() ); std::string binddn( argMap->value(YCPString("binddn"))->asString()->value_cstr() ); std::string cred( argMap->value(YCPString("credentials"))->asString()->value_cstr() ); - bool starttls = argMap->value(YCPString("starttls"))->asBoolean()->value(); + bool starttls = false; + if (! argMap->value(YCPString("starttls")).isNull() ) + { + starttls = argMap->value(YCPString("starttls"))->asBoolean()->value(); + } LDAPUrl prvuri; prvuri.setScheme(protocol); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org