Author: jsuchome Date: Fri Jan 7 12:59:08 2011 New Revision: 63125 URL: http://svn.opensuse.org/viewcvs/yast?rev=63125&view=rev Log: - call c_rehash after downloading certificate (bnc#662937) - do not write into sssd.conf when it does not exist (bnc#662963) - 2.20.4 Modified: trunk/ldap-client/VERSION trunk/ldap-client/package/yast2-ldap-client.changes trunk/ldap-client/src/Ldap.ycp trunk/ldap-client/src/ui.ycp Modified: trunk/ldap-client/VERSION URL: http://svn.opensuse.org/viewcvs/yast/trunk/ldap-client/VERSION?rev=63125&r1=63124&r2=63125&view=diff ============================================================================== --- trunk/ldap-client/VERSION (original) +++ trunk/ldap-client/VERSION Fri Jan 7 12:59:08 2011 @@ -1 +1 @@ -2.20.3 +2.20.4 Modified: trunk/ldap-client/package/yast2-ldap-client.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/ldap-client/package/yast2-ldap-client.changes?rev=63125&r1=63124&r2=63125&view=diff ============================================================================== --- trunk/ldap-client/package/yast2-ldap-client.changes (original) +++ trunk/ldap-client/package/yast2-ldap-client.changes Fri Jan 7 12:59:08 2011 @@ -1,4 +1,11 @@ ------------------------------------------------------------------- +Fri Jan 7 12:11:38 CET 2011 - jsuchome@suse.cz + +- call c_rehash after downloading certificate (bnc#662937) +- do not write into sssd.conf when it does not exist (bnc#662963) +- 2.20.4 + +------------------------------------------------------------------- Thu Jan 6 15:17:13 CET 2011 - jsuchome@suse.cz - ensure that sssd config file is written before starting service Modified: trunk/ldap-client/src/Ldap.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/ldap-client/src/Ldap.ycp?rev=63125&r1=63124&r2=63125&view=diff ============================================================================== --- trunk/ldap-client/src/Ldap.ycp (original) +++ trunk/ldap-client/src/Ldap.ycp Fri Jan 7 12:59:08 2011 @@ -1945,6 +1945,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: trunk/ldap-client/src/ui.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/ldap-client/src/ui.ycp?rev=63125&r1=63124&r2=63125&view=diff ============================================================================== --- trunk/ldap-client/src/ui.ycp (original) +++ trunk/ldap-client/src/ui.ycp Fri Jan 7 12:59:08 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