From 4d88c5a71c33953dbe5cedaf851b467ad233ebf7 Mon Sep 17 00:00:00 2001 From: Michael Catanzaro Date: Wed, 11 Apr 2018 22:51:28 -0500 Subject: [PATCH] Allow setting weak passwords --- allow-weak-passwords.patch | 30 ++++++++++++++++++++++++++++++ gnome-initial-setup.spec | 7 ++++++- 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 allow-weak-passwords.patch diff --git a/allow-weak-passwords.patch b/allow-weak-passwords.patch new file mode 100644 index 0000000..c3203c3 --- /dev/null +++ b/allow-weak-passwords.patch @@ -0,0 +1,30 @@ +From 985f2a009ddf5179482e7551400cf8065553707e Mon Sep 17 00:00:00 2001 +From: Michael Catanzaro +Date: Wed, 11 Apr 2018 22:16:54 -0500 +Subject: Revert "Revert "Don't hard-enforce strong passwords"" + +This reverts commit 0c67a9800c7832dd55c046adc372833a96a96cf0. + +This is a requirement for Fedora, but I suspect few distros want to +irritate users right off the bat by dictating which passwords may be +used. +--- + gnome-initial-setup/pages/password/gis-password-page.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/gnome-initial-setup/pages/password/gis-password-page.c b/gnome-initial-setup/pages/password/gis-password-page.c +index cf3db9e..731666d 100644 +--- a/gnome-initial-setup/pages/password/gis-password-page.c ++++ b/gnome-initial-setup/pages/password/gis-password-page.c +@@ -59,7 +59,7 @@ page_validate (GisPasswordPage *page) + { + GisPasswordPagePrivate *priv = gis_password_page_get_instance_private (page); + +- return priv->valid_confirm && priv->valid_password; ++ return priv->valid_confirm; + } + + static void +-- +cgit v0.12 + diff --git a/gnome-initial-setup.spec b/gnome-initial-setup.spec index 3e32426..f5cc627 100644 --- a/gnome-initial-setup.spec +++ b/gnome-initial-setup.spec @@ -6,7 +6,7 @@ Name: gnome-initial-setup Version: 3.28.0 -Release: 5%{?dist} +Release: 6%{?dist} Summary: Bootstrapping your OS License: GPLv2+ @@ -16,6 +16,8 @@ Source1: vendor.conf Patch0: honor-firstboot-disabled.patch # https://bugzilla.gnome.org/show_bug.cgi?id=793501 and https://bugzilla.gnome.org/show_bug.cgi?id=794166 Patch1: reduce-initial-setup-redundancy.patch +# https://bugzilla.gnome.org/show_bug.cgi?id=754213 +Patch2: allow-weak-passwords.patch BuildRequires: krb5-devel BuildRequires: desktop-file-utils @@ -114,6 +116,9 @@ useradd -rM -d /run/gnome-initial-setup/ -s /sbin/nologin %{name} &>/dev/null || %{_datadir}/gnome-initial-setup/vendor.conf %changelog +* Wed Apr 11 2018 Michael Catanzaro - 3.28.0-6 +- Allow setting weak passwords + * Mon Apr 02 2018 Michael Catanzaro - 3.28.0-5 - Move vendor.conf to /usr/share