feat: add GDM customization

disable fingerprint and smartcard login
add a banner text and logo on login screen
This commit is contained in:
Michel Decima
2021-10-08 10:50:20 +02:00
parent 433849aaad
commit df1b0f8c36
11 changed files with 54 additions and 0 deletions

13
Notes_gdm.md Normal file
View File

@@ -0,0 +1,13 @@
Pour désactiver le login avec smartcard, je me suis inspiré de la
documentation [GNOME - Disallow login using a fingerprint] propose de
créer un profil `user` pour `dconf`, hélas, ça ne fonctionne pas !
En revanche, avec un profil `gdm` comme dans [GNOME - Add a greeter logo to
the login screen], c'est bon, on observe le comportement attendu, lorsque
le dongle PKI est présent dans le port USB, c'est bien un login/password
qui est demandé par GDM.
Documentation pas à jour ?
[GNOME - Add a greeter logo to the login screen]: https://help.gnome.org/admin/system-admin-guide/stable/login-logo.html.en
[GNOME - Display a text banner on the login screen]: https://help.gnome.org/admin/system-admin-guide/stable/login-banner.html.en
[GNOME - Disallow login using a fingerprint]: https://help.gnome.org/admin/system-admin-guide/stable/login-fingerprint.html.en

2
debian/install vendored Normal file
View File

@@ -0,0 +1,2 @@
etc
usr

4
debian/postinst vendored
View File

@@ -3,6 +3,10 @@ set -e
case "$1" in
configure)
# enable GDM customization
if [ -x /usr/bin/dconf ] ; then
dconf update
fi
# Configure PAM for credential cache
apt-mark manual libpam-ccreds >/dev/null || true
if [ -e /usr/share/pam-configs/ccreds-check ] ; then

23
debian/postrm vendored Normal file
View File

@@ -0,0 +1,23 @@
#!/bin/sh
set -e
case "$1" in
purge)
# forget GDM customization
if [ -x /usr/bin/dconf ] ; then
dconf update
fi
;;
remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
;;
*)
echo "postrm called with unknown argument \`$1'" >&2
exit 1
;;
esac
#DEBHELPER#
exit 0

View File

@@ -0,0 +1,4 @@
[org/gnome/login-screen]
banner-message-enable=true
banner-message-text='Welcome to Yourdev!'

View File

@@ -0,0 +1,3 @@
[org/gnome/login-screen]
logo='/usr/share/plymouth/yourdev-logo.png'
fallback-logo='/usr/share/plymouth/ubuntu-logo.png'

View File

@@ -0,0 +1,2 @@
[org/gnome/login-screen]
enable-smartcard-authentication=false

3
etc/dconf/profile/gdm Normal file
View File

@@ -0,0 +1,3 @@
user-db:user
system-db:gdm
file-db:/usr/share/gdm/greeter-dconf-defaults

BIN
images/orange-48.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
images/yourdev-logo.xcf Normal file

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB