Author: jsuchome Date: Fri Jan 27 16:07:48 2012 New Revision: 67318 URL: http://svn.opensuse.org/viewcvs/yast?rev=67318&view=rev Log: - change mode of sssd.conf file after writing (workaround for ini-agent bnc#743355) - 2.17.33 Modified: branches/SuSE-Code-11-SP2-Branch/ldap-client/VERSION branches/SuSE-Code-11-SP2-Branch/ldap-client/package/yast2-ldap-client.changes branches/SuSE-Code-11-SP2-Branch/ldap-client/src/Ldap.ycp Modified: branches/SuSE-Code-11-SP2-Branch/ldap-client/VERSION URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/ldap-client/VERSION?rev=67318&r1=67317&r2=67318&view=diff ============================================================================== --- branches/SuSE-Code-11-SP2-Branch/ldap-client/VERSION (original) +++ branches/SuSE-Code-11-SP2-Branch/ldap-client/VERSION Fri Jan 27 16:07:48 2012 @@ -1 +1 @@ -2.17.32 +2.17.33 Modified: branches/SuSE-Code-11-SP2-Branch/ldap-client/package/yast2-ldap-client.changes URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/ldap-client/package/yast2-ldap-client.changes?rev=67318&r1=67317&r2=67318&view=diff ============================================================================== --- branches/SuSE-Code-11-SP2-Branch/ldap-client/package/yast2-ldap-client.changes (original) +++ branches/SuSE-Code-11-SP2-Branch/ldap-client/package/yast2-ldap-client.changes Fri Jan 27 16:07:48 2012 @@ -1,4 +1,11 @@ ------------------------------------------------------------------- +Thu Jan 26 15:47:22 CET 2012 - jsuchome@suse.cz + +- change mode of sssd.conf file after writing (workaround for + ini-agent bnc#743355) +- 2.17.33 + +------------------------------------------------------------------- Wed Nov 16 16:20:03 CET 2011 - jsuchome@suse.cz - correctly handle sssd config with more LDAP servers (bnc#729174) 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=67318&r1=67317&r2=67318&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 Jan 27 16:07:48 2012 @@ -2240,9 +2240,10 @@ */ global boolean WriteSSSDConfig () { - if (!FileUtils::Exists ("/etc/sssd/sssd.conf")) + string file = "/etc/sssd/sssd.conf"; + if (!FileUtils::Exists (file)) { - y2warning ("file /etc/sssd/sssd.conf does not exists: not writing"); + y2warning ("file %1 does not exists: not writing", file); return false; } @@ -2305,8 +2306,13 @@ if (!SCR::Write(.etc.sssd_conf, nil)) { - y2error ("error writing ldap.conf file"); + y2error ("error writing %1 file", file); } + else + { + // workadound for ini-agent bug (bnc#743355) + SCR::Execute (.target.bash, sformat ("/bin/chmod 600 %1", file)); + } return true; } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org