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 0992853f3fbdc2e91ea83925b478d0b64e3bcbcc (commit)
from 63101f22ff455e537d43f479356622ceb1217afc (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=0992853f3fbdc2e91ea83925b478d0b64e3bcbcc
commit 0992853f3fbdc2e91ea83925b478d0b64e3bcbcc
Author: Franck Villaume <[email protected]>
Date: Fri Jan 22 19:57:55 2016 +0100
account management system: fix UNIX sysCreateUser, no unix_gid anymore
diff --git a/src/CHANGES b/src/CHANGES
index 3223efd..ffd5282 100644
--- a/src/CHANGES
+++ b/src/CHANGES
@@ -1,4 +1,5 @@
FusionForge 6.0.4:
+* Account Management System: fix sysCreateUser for UNIX: unix_gid dropped
(TrivialDev)
* 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)
diff --git a/src/common/include/system/UNIX.class.php
b/src/common/include/system/UNIX.class.php
index 8c4471e..8f1b78b 100644
--- a/src/common/include/system/UNIX.class.php
+++ b/src/common/include/system/UNIX.class.php
@@ -3,6 +3,7 @@
* FusionForge system users integration
*
* Copyright 2004, Christian Bayle
+ * Copyright 2015, Franck Villaume - TrivialDev
*
* This file is part of FusionForge. FusionForge is free software;
* you can redistribute it and/or modify it under the terms of the
@@ -53,19 +54,17 @@ class UNIX extends System {
} else {
$res = db_query_params ('UPDATE users SET
unix_uid=user_id+$1,
- unix_gid=user_id+$2,
- unix_status=$3
- WHERE user_id=$4',
+ unix_status=$2
+ WHERE user_id=$3',
array ($this->UID_ADD,
- $this->UID_ADD,
'A',
$user_id)) ;
if (!$res) {
$this->setError('Error:
Cannot Update User UID/GID: '.db_error());
return false;
}
- return true;
}
+ return parent::sysCreateUser($user_id);
}
/**
-----------------------------------------------------------------------
Summary of changes:
src/CHANGES | 1 +
src/common/include/system/UNIX.class.php | 9 ++++-----
2 files changed, 5 insertions(+), 5 deletions(-)
hooks/post-receive
--
FusionForge
_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits