diff --git a/122.patch b/122.patch new file mode 100644 index 0000000..7f10688 --- /dev/null +++ b/122.patch @@ -0,0 +1,29 @@ +From 6ee1429f5e8e7e49469acde9a426d4b9b4273eab Mon Sep 17 00:00:00 2001 +From: Michael Catanzaro +Date: Thu, 5 Aug 2021 16:43:13 -0500 +Subject: [PATCH] account: enterprise accounts should be admins too! + +If the newly-created user is not a local administrator, then there is no +local administrator at all, and that is sad. Nobody wants that. Whoever +installs the system should control it. + +Fixes #80 +--- + gnome-initial-setup/pages/account/gis-account-page-enterprise.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/gnome-initial-setup/pages/account/gis-account-page-enterprise.c b/gnome-initial-setup/pages/account/gis-account-page-enterprise.c +index 799c51f1..52df9a3a 100644 +--- a/gnome-initial-setup/pages/account/gis-account-page-enterprise.c ++++ b/gnome-initial-setup/pages/account/gis-account-page-enterprise.c +@@ -176,6 +176,7 @@ on_permit_user_login (GObject *source, + g_debug ("Caching remote user: %s", login); + + priv->act_user = act_user_manager_cache_user (priv->act_client, login, NULL); ++ act_user_set_account_type (priv->act_user, ACT_USER_ACCOUNT_TYPE_ADMINISTRATOR); + g_signal_emit (page, signals[USER_CACHED], 0, priv->act_user, gtk_entry_get_text (GTK_ENTRY (priv->password))); + apply_complete (page, TRUE); + +-- +GitLab + diff --git a/gnome-initial-setup.spec b/gnome-initial-setup.spec index 81a7ca9..bf46580 100644 --- a/gnome-initial-setup.spec +++ b/gnome-initial-setup.spec @@ -8,7 +8,7 @@ Name: gnome-initial-setup Version: 41~alpha -Release: 1%{?dist} +Release: 2%{?dist} Summary: Bootstrapping your OS License: GPLv2+ @@ -16,6 +16,9 @@ URL: https://wiki.gnome.org/Design/OS/InitialSetup Source0: https://download.gnome.org/sources/%{name}/41.alpha/%{name}-%{tarball_version}.tar.xz Source1: vendor.conf +# https://gitlab.gnome.org/GNOME/gnome-initial-setup/-/merge_requests/122 +Patch0: 122.patch + BuildRequires: meson BuildRequires: gcc BuildRequires: krb5-devel @@ -104,6 +107,9 @@ useradd -rM -d /run/gnome-initial-setup/ -s /sbin/nologin %{name} &>/dev/null || %{_datadir}/gnome-initial-setup/vendor.conf %changelog +* Fri Aug 06 2021 Michael Catanzaro - 41~alpha-2 +- Add enterprise login patch, first user should be a local admin + * Tue Aug 03 2021 Kalev Lember - 41~alpha-1 - Update to 41.alpha