[yast-commit] r67344 - in /branches/SuSE-Linux-12_1-Branch/ldap-client: VERSION package/yast2-ldap-client.changes src/Ldap.ycp
Author: jsuchome Date: Thu Feb 2 09:33:39 2012 New Revision: 67344 URL: http://svn.opensuse.org/viewcvs/yast?rev=67344&view=rev Log: - change mode of sssd.conf file after writing (workaround for ini-agent bnc#743355) - 2.21.13 Modified: branches/SuSE-Linux-12_1-Branch/ldap-client/VERSION branches/SuSE-Linux-12_1-Branch/ldap-client/package/yast2-ldap-client.changes branches/SuSE-Linux-12_1-Branch/ldap-client/src/Ldap.ycp Modified: branches/SuSE-Linux-12_1-Branch/ldap-client/VERSION URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Linux-12_1-Branch/ldap-client/VERSION?rev=67344&r1=67343&r2=67344&view=diff ============================================================================== --- branches/SuSE-Linux-12_1-Branch/ldap-client/VERSION (original) +++ branches/SuSE-Linux-12_1-Branch/ldap-client/VERSION Thu Feb 2 09:33:39 2012 @@ -1 +1 @@ -2.21.12 +2.21.13 Modified: branches/SuSE-Linux-12_1-Branch/ldap-client/package/yast2-ldap-client.changes URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Linux-12_1-Branch/ldap-client/package/yast2-ldap-client.changes?rev=67344&r1=67343&r2=67344&view=diff ============================================================================== --- branches/SuSE-Linux-12_1-Branch/ldap-client/package/yast2-ldap-client.changes (original) +++ branches/SuSE-Linux-12_1-Branch/ldap-client/package/yast2-ldap-client.changes Thu Feb 2 09:33:39 2012 @@ -1,4 +1,11 @@ ------------------------------------------------------------------- +Thu Feb 2 09:01:47 CET 2012 - jsuchome@suse.cz + +- change mode of sssd.conf file after writing (workaround for + ini-agent bnc#743355) +- 2.21.13 + +------------------------------------------------------------------- Wed Nov 16 15:31:30 CET 2011 - jsuchome@suse.cz - correctly handle sssd config with more LDAP servers (bnc#729174) Modified: branches/SuSE-Linux-12_1-Branch/ldap-client/src/Ldap.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Linux-12_1-Branch/ldap-client/src/Ldap.ycp?rev=67344&r1=67343&r2=67344&view=diff ============================================================================== --- branches/SuSE-Linux-12_1-Branch/ldap-client/src/Ldap.ycp (original) +++ branches/SuSE-Linux-12_1-Branch/ldap-client/src/Ldap.ycp Thu Feb 2 09:33:39 2012 @@ -2213,9 +2213,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; } @@ -2278,8 +2279,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
participants (1)
-
jsuchome@svn2.opensuse.org