Author: jsuchome Date: Fri Mar 18 16:51:18 2011 New Revision: 63604 URL: http://svn.opensuse.org/viewcvs/yast?rev=63604&view=rev Log: - call c_rehash after downloading certificate (bnc#662937) - do not write into sssd.conf when it does not exist (bnc#662963) Modified: branches/SuSE-Code-11-SP2-Branch/ldap-client/src/Ldap.ycp branches/SuSE-Code-11-SP2-Branch/ldap-client/src/ui.ycp Modified: branches/SuSE-Code-11-SP2-Branch/ldap-client/src/Ldap.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/ldap-client/src/Ldap.ycp?rev=63604&r1=63603&r2=63604&view=diff ============================================================================== --- branches/SuSE-Code-11-SP2-Branch/ldap-client/src/Ldap.ycp (original) +++ branches/SuSE-Code-11-SP2-Branch/ldap-client/src/Ldap.ycp Fri Mar 18 16:51:18 2011 @@ -1972,6 +1972,12 @@ */ global boolean WriteSSSDConfig () { + if (!FileUtils::Exists ("/etc/sssd/sssd.conf")) + { + y2warning ("file /etc/sssd/sssd.conf does not exists: not writing"); + return false; + } + list<string> sections = SCR::Dir (.etc.sssd_conf.section); SCR::Write (.etc.sssd_conf.v.sssd.domains, "default"); Modified: branches/SuSE-Code-11-SP2-Branch/ldap-client/src/ui.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/ldap-client/src/ui.ycp?rev=63604&r1=63603&r2=63604&view=diff ============================================================================== --- branches/SuSE-Code-11-SP2-Branch/ldap-client/src/ui.ycp (original) +++ branches/SuSE-Code-11-SP2-Branch/ldap-client/src/ui.ycp Fri Mar 18 16:51:18 2011 @@ -428,6 +428,12 @@ list <string> l = splitstring (cert_url, "/"); name = l[size(l) - 1]:"downloaded-by-yast2-ldap-client.pem"; success = SCR::Execute (.target.bash, sformat ("/bin/cp -a '%1' '%2/%3'", certTmpFile, dir, name)) == 0; + // rehash cert directory (bnc#662937) + map out = (map)SCR::Execute (.target.bash_output, sformat ("/usr/bin/c_rehash %1", dir)); + if (out["stderr"]:"" != "") + { + y2error ("something went wrong: %1", out); + } break; } } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org