[debian-edu-commits] debian-edu/pkg-team/ 05/08: debian/patches: Add 0005_fix-password-expiry-status.patch. Fix expiration status for passwords if shadowMax is used in POSIX/shadow accounts.

Mike Gabriel sunweaver at debian.org
Mon Aug 24 19:49:47 UTC 2015


This is an automated email from the git hooks/post-receive script.

sunweaver pushed a commit to branch debian/jessie/updates
in repository gosa.

commit 254b9886195e340307051caaf7c943dd29fd1c81
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Mon Aug 24 07:49:35 2015 +0200

    debian/patches: Add 0005_fix-password-expiry-status.patch. Fix expiration status for passwords if shadowMax is used in POSIX/shadow accounts.
---
 debian/patches/0005_fix-password-expiry-status.patch | 14 ++++++++++++++
 debian/patches/series                                |  1 +
 2 files changed, 15 insertions(+)

diff --git a/debian/patches/0005_fix-password-expiry-status.patch b/debian/patches/0005_fix-password-expiry-status.patch
new file mode 100644
index 0000000..9f71f42
--- /dev/null
+++ b/debian/patches/0005_fix-password-expiry-status.patch
@@ -0,0 +1,14 @@
+Description: Fix expiration status when shadowMax is used
+Origin: https://oss.gonicus.de/labs/gosa/changeset/21241
+
+--- a/gosa-core/plugins/personal/posix/class_posixAccount.inc
++++ b/gosa-core/plugins/personal/posix/class_posixAccount.inc
+@@ -155,7 +155,7 @@
+         }
+       } elseif (($this->shadowLastChange + $this->shadowMin) >= $current){
+         $this->status= _("active").", "._("password not changeable");
+-      } elseif (($this->shadowLastChange + $this->shadowMax) >= $current){
++      } elseif (($this->shadowLastChange + $this->shadowMax) <= $current){
+         $this->status= _("active").", "._("password expired");
+       } else {
+         $this->status= _("active");
diff --git a/debian/patches/series b/debian/patches/series
index 10ad424..a4d5c51 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,6 +2,7 @@
 0002_style-robustness.patch
 0003_xss-vulnerability-on-login-screen.patch
 0004_fix-get-post.patch
+0005_fix-password-expiry-status.patch
 1001_fix-mass-ldapimport.patch
 1002_trim-decrypt.patch
 1003_RequestHeader-no-underscores-apache24.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/pkg-team/gosa.git



More information about the debian-edu-commits mailing list