[Fusionforge-commits] FusionForge branch 6.0 updated. v6.0.3-33-gb21fb65

Sylvain Beucler beuc-inria at libremir.placard.fr.eu.org
Mon Nov 16 11:58:20 CET 2015


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".

The branch, 6.0 has been updated
       via  b21fb65ab443f8847d033542af7d3ea7074fa0d5 (commit)
      from  ba14d851a1a30ee0390f9f2577b303769883d8a4 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=b21fb65ab443f8847d033542af7d3ea7074fa0d5

commit b21fb65ab443f8847d033542af7d3ea7074fa0d5
Author: Sylvain Beucler <sylvain.beucler at inria.fr>
Date:   Mon Nov 16 11:58:07 2015 +0100

    account: trigger system replication when user changes password or shell (Inria)

diff --git a/src/CHANGES b/src/CHANGES
index a742cef..7a85fb4 100644
--- a/src/CHANGES
+++ b/src/CHANGES
@@ -1,6 +1,7 @@
 FusionForge 6.0.4:
 * Accounts: do not accept digits-only user and group names, to avoid confusion with UID/GID in system commands (Inria)
 * Accounts: drop redundant (and insecure) unsalted MD5 password hashes from the database (Inria)
+* Accounts: trigger system replication when user changes password or shell (Inria)
 * MTA-Exim4: restart exim4 on install
 * Plugin SCM: fix another race condition when creating project with SCM selected (Inria)
 * Plugin SCM Git: improve user matching when computing stats, support git .mailmap (Inria)
diff --git a/src/common/include/system/pgsql.class.php b/src/common/include/system/pgsql.class.php
index 910258a..5e52938 100644
--- a/src/common/include/system/pgsql.class.php
+++ b/src/common/include/system/pgsql.class.php
@@ -206,6 +206,15 @@ class pgsql extends System {
  	*
  	*/
 	function sysUserSetAttribute($user_id,$attr,$value) {
+		// trigger nscd cache invalidation and scm-passwd regen through systasksd
+		$res = db_query_params('UPDATE nss_usergroups'
+		                       . ' SET last_modified_date=EXTRACT(EPOCH FROM now())::integer'
+		                       . ' WHERE user_id=$1',
+		                       array($user_id));
+		if (!$res) {
+			$this->setError('Error: Cannot update user attribute: '.db_error());
+			return false;
+		}
 		return true;
 	}
 

-----------------------------------------------------------------------

Summary of changes:
 src/CHANGES                               | 1 +
 src/common/include/system/pgsql.class.php | 9 +++++++++
 2 files changed, 10 insertions(+)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list