Commit Graph

57 Commits

Author SHA1 Message Date
Michel Decima
6267240878 feat: new GDM greeter logo
Text in logo is capitalized (YourDev instead of yourdev)
Image file is installed in /usr/share/orange-yourdev-login
2023-01-18 14:09:49 +01:00
Michel Decima
5a6fe5ecc6 chore: use drop-in fragment for pwquality.conf
Solves issue #6
2023-01-18 14:09:41 +01:00
jean-françois vincent
88b3e705df Merge branch 'improve_password_rules' into 'develop'
Improve password rules for local accounts

See merge request yourdev/orange-yourdev-login!1
2023-01-18 08:43:08 +00:00
jfv
7c370fded7 Update rule about password min size from 12 to 10 2023-01-13 16:09:10 +01:00
jfv
a489398c4a Improve password rules for local accounts 2023-01-12 09:07:14 +01:00
Michel Decima
35d8bbf7fd license: typo in LICENSE.md 2022-09-30 18:47:39 +02:00
Michel Decima
8a8f984cd2 Merge branch 'license' 2022-09-14 16:23:33 +02:00
Michel Decima
a650c659fd license: update debian/copyright 2022-09-14 16:23:24 +02:00
Michel Decima
807f7118e3 license: add common license header 2022-09-14 16:22:57 +02:00
Michel Decima
e3fdc1cb69 license: add LICENSE file 2022-09-14 16:18:28 +02:00
Michel Decima
2336308a17 CI: enable build for ubuntu/kinetic 2022-08-24 13:47:14 +02:00
Michel Decima
98527371ba packaging: bump version number 2022-06-29 11:47:44 +02:00
Michel Decima
3abcb8fa49 packaging: use short version suffix 2022-06-29 11:46:10 +02:00
Michel Decima
d42da264a3 doc: add Safenet documentation for PKI login 2022-06-29 11:25:15 +02:00
Michel Decima
171ac09f3e packaging: bump version number 2022-04-27 12:26:56 +02:00
Michel Decima
b3ae7f8023 feat: define default proxy settings for GNOME desktop
The settings have to be defined in a dconf profile named `user`,
which stores its properties in a database named `local`, see
https://help.gnome.org/admin/system-admin-guide/stable/login-fingerprint.html.en
2022-04-27 12:22:19 +02:00
Michel Decima
78883988f2 fix: only recommends orange-dongle-aladdin
Safenet PKI driver is not mandatory for default behaviour
2022-04-27 12:12:21 +02:00
Michel Decima
31e4133eac packaging: update Vcs-{Git,Browser} properties in d/control 2022-04-26 11:25:04 +02:00
Michel Decima
20ec88944c feat: use standard template for ccache file
Default SSSD template for ccache file is /tmp/krb5cc_%U_XXXXXX, where
XXXXXX is a suffix that will be interpreted by mkstemp(3) to create a
unique file name, while the standard configuration of the libkrb5
library is `/tmp/krb5cc_%U`.

To guarantee compatibility with the existing system, we force the use
of the standard model in SSSD.
2022-04-13 15:24:17 +02:00
Michel Decima
e1361a3c32 packaging: bump version number 2022-03-09 17:49:51 +01:00
Michel Decima
ae9387d8b5 fix: in d/control, breaks/conflicts to orange-yourdev-pki-login 2022-03-09 17:48:22 +01:00
Michel Decima
0345a9906b ci: enable build for ubuntu/jammy 2022-02-07 16:37:13 +01:00
Michel Decima
cba722355d packaging: update changelog 2022-01-02 17:25:51 +01:00
Michel Decima
b03d583f88 chore: mark some PAM profiles as seen in d/postinst
Mark PAM profiles krb5, sss and yourdev as "seen" in /var/lib/pam so
next execution of command /usr/sbin/pam-auth-update in interactive
mode will ignore the values of 'Default' properties.
This avoids the automatic selection of the sss profile, which conflicts
with the yourdev profile.
2022-01-02 17:23:53 +01:00
Michel Decima
a5ab24a3cb packaging: bump version number 2022-01-02 13:32:57 +01:00
Michel Decima
c24a4816d6 feat: use DNS discovery to find Kerberos servers
Rationale: when configured with /etc/krb5.conf, SSSD ignores the values
of dns_lookup_kdc and dns_lookp_realm properties, ignores the static kdc
servers declared in the [realms] section, and always try to find the
Kerberos TGT servers using DNS _srv_ discovery, based on the realm name
as search domain (which is not optimal in the Orange network).

It's easier to define how to get the list of Kerberos servers from the
SSSD configuration, because then you can either give a static list of
servers or use DNS discovery by specifying the right search domain.

If krb5_use_kdcinfo property value is true (the default), then the
Kerberos servers are taken from sssd.conf, otherwise if the value is
false then the servers are taken from krb5.conf
2022-01-02 13:15:37 +01:00
Michel Decima
5b195034a8 chore: add d/sources/options 2021-12-13 09:34:02 +01:00
Michel Decima
7699651803 fix: remove comments in pam-configs/yourdev
Presence of comments in pam-configs/ file cause several warnings when
invoking command `pam-auth-updates` (use of uninitialized value), and
then later the PAM configuration is broken:
  - SSH login fails immediately (connection closed)
  - opening a session with `sudo su -` is impossible (authorisation refused)
  - and maybe more...

Without comments in /usr/share/pam-configs/yourdev, everything works as
expected, no warnings in `pam-auth-updates`, no authentication problems.
2021-11-08 10:59:52 +01:00
Michel Decima
7b32c73c76 packaging: bump version number 2021-11-08 09:29:02 +01:00
Michel Decima
25db8873f7 chore: use common prefix for dconf/db/gdm.d files 2021-11-02 18:03:22 +01:00
Michel Decima
868a8c8a4d doc: update Notes_pam.md 2021-11-01 19:20:46 +01:00
Michel Decima
089bb73985 chore: reset debug level in sssd.conf 2021-11-01 19:09:22 +01:00
Michel Decima
61a7d53cbf packaging: bump version number 2021-11-01 19:08:35 +01:00
Michel Decima
d89eea147d feat: disable chpass provider in SSSD configuration
Using the "change password" feature of pam_sss modules always lead to a
bad situation where AD password and Gassi password are not synchronyzed
anymore. To avoid this, we disable the feature in SSSD configuration.

The network password can still be changed using the command `kpasswd`
provided by package `krb5-user`.
2021-11-01 18:58:30 +01:00
Michel Decima
0ccbd557cc doc: how not to change AD password 2021-11-01 18:53:05 +01:00
Michel Decima
f86e743798 feat: disable PAM password feature for sss module
Properties 'Password:' and 'Password-Initial:' are intentionally removed
from /usr/share/pam-configs/yourdev because changing a remote password
from the host using standard commands does not work in the Orange
environment : it changes the password in the Active Directory backend,
but not in the Gassi backend (they are not synchronized), and you end
up with two active passwords: the new one for kinit, IMAP, SMTP, SMB,
etc. and the old one for all websites from MonSI ...

With this configuration, you must use first the 'mot de passe attitude'
website to change your AD/Gassi password, and then the command `passwd`
to synchronize your local password.
2021-11-01 18:53:05 +01:00
Michel Decima
fc01240154 chore: add eburo-like banner in GDM
I would have preferred something shorter like "trespassers will be shot",
but it seems that it is better to quote an article of the criminal code.

Note: the text of the banner is automatically wrapped by GDM, the use
of line breaks is not required.
2021-10-22 15:03:16 +02:00
Michel Decima
53c655eef4 chore: test for gdm-password alternative in utility scripts 2021-10-22 14:38:31 +02:00
Michel Decima
eb76edda07 doc: typo in Notes_sssd.conf 2021-10-20 12:23:23 +02:00
Michel Decima
8fd5ffc46a packaging: bump version number 2021-10-20 02:56:53 -07:00
Michel Decima
c5aaa81fd8 doc: update notes 2021-10-20 02:56:53 -07:00
Michel Decima
ccb17c7352 feat: give higher priority to pam_sss module
With default priority (128), pam-auth-update put module pam_sss after
module pam_unix in /etc/pam.d/common-auth, and then a user with a
local account and local password synchronized with AD password will
never be granted a Kerberos TGT on session opening.
2021-10-20 02:54:46 -07:00
Michel Decima
af60473e89 fix: do not use --force with pam-auth-update
According to pam-auth-update(8), it is an error to use option --force
in postinst script:

    This  option  must not be used by package maintainer scripts;
    it is intended for use by administrators only.
2021-10-19 23:38:16 -07:00
Michel Decima
1c53777cd2 ci: enable deployment in production 2021-10-19 11:57:01 +02:00
Michel Decima
4b5b0b56d8 ci: enable build for ubuntu/impish 2021-10-18 11:00:52 +02:00
Michel Decima
19b90e3040 doc: update notes 2021-10-13 16:21:17 +02:00
Michel Decima
3f647b7fb4 chore: add utility script to switch login mode 2021-10-13 13:35:32 +02:00
Michel Decima
151c17f676 packaging: remove lintian warnings 2021-10-13 09:27:12 +02:00
Michel Decima
361e52fec6 packaging: bump version number 2021-10-13 09:10:19 +02:00
Michel Decima
6c7a4fd683 feat: add pam-pkcs11 configuration
Recommends sssd, sssd-tools, libpam-sss
Add SSSD configuration (sssd.conf)
Configure certificates for SSSD (postinst)
Restart SSSD service (postinst)
2021-10-13 09:08:02 +02:00