diff --git a/Notes_gdm.md b/Notes_gdm.md new file mode 100644 index 0000000..cb70849 --- /dev/null +++ b/Notes_gdm.md @@ -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 + diff --git a/debian/install b/debian/install new file mode 100644 index 0000000..a75e237 --- /dev/null +++ b/debian/install @@ -0,0 +1,2 @@ +etc +usr diff --git a/debian/postinst b/debian/postinst index bb9f1f2..7b3ab6d 100644 --- a/debian/postinst +++ b/debian/postinst @@ -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 diff --git a/debian/postrm b/debian/postrm new file mode 100644 index 0000000..3929002 --- /dev/null +++ b/debian/postrm @@ -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 diff --git a/etc/dconf/db/gdm.d/01-banner b/etc/dconf/db/gdm.d/01-banner new file mode 100644 index 0000000..e8b3f94 --- /dev/null +++ b/etc/dconf/db/gdm.d/01-banner @@ -0,0 +1,4 @@ +[org/gnome/login-screen] +banner-message-enable=true +banner-message-text='Welcome to Yourdev!' + diff --git a/etc/dconf/db/gdm.d/02-logo b/etc/dconf/db/gdm.d/02-logo new file mode 100644 index 0000000..b9d9d31 --- /dev/null +++ b/etc/dconf/db/gdm.d/02-logo @@ -0,0 +1,3 @@ +[org/gnome/login-screen] +logo='/usr/share/plymouth/yourdev-logo.png' +fallback-logo='/usr/share/plymouth/ubuntu-logo.png' diff --git a/etc/dconf/db/gdm.d/03-smartcard b/etc/dconf/db/gdm.d/03-smartcard new file mode 100644 index 0000000..8070286 --- /dev/null +++ b/etc/dconf/db/gdm.d/03-smartcard @@ -0,0 +1,2 @@ +[org/gnome/login-screen] +enable-smartcard-authentication=false diff --git a/etc/dconf/profile/gdm b/etc/dconf/profile/gdm new file mode 100644 index 0000000..817afc5 --- /dev/null +++ b/etc/dconf/profile/gdm @@ -0,0 +1,3 @@ +user-db:user +system-db:gdm +file-db:/usr/share/gdm/greeter-dconf-defaults diff --git a/images/orange-48.png b/images/orange-48.png new file mode 100644 index 0000000..eea5241 Binary files /dev/null and b/images/orange-48.png differ diff --git a/images/yourdev-logo.xcf b/images/yourdev-logo.xcf new file mode 100644 index 0000000..fb5c0be Binary files /dev/null and b/images/yourdev-logo.xcf differ diff --git a/usr/share/plymouth/yourdev-logo.png b/usr/share/plymouth/yourdev-logo.png new file mode 100644 index 0000000..9d81f82 Binary files /dev/null and b/usr/share/plymouth/yourdev-logo.png differ