lxdm: support to change user password
PATCH 1/2 lxdm: support to change user password
From: Kai Kang <[email protected]>
Update lxdm to support change user password when the password expired. It also add a label to show useful information to tell user that 'Authentication failed' or 'password expired' etc.
It only work with distro feature 'pam'.
--- ...et-visible-when-switch-to-input-user.patch | 33 ++++ .../lxdm/0002-greeter-gdk.c-fix-typo.patch | 28 +++ ...ck-whether-password-expired-with-pam.patch | 46 +++++ ...function-to-change-password-with-pam.patch | 124 ++++++++++++ ...sword-expire-and-update-new-password.patch | 53 ++++++ ...emes-Industrial-add-info-label-in-ui.patch | 124 ++++++++++++ ...c-support-to-update-expired-password.patch | 180 ++++++++++++++++++ ...c-show-information-on-gtk-label-info.patch | 99 ++++++++++ meta-oe/recipes-graphics/lxdm/lxdm_0.5.3.bb | 8 + 9 files changed, 695 insertions(+) create mode 100644 meta-oe/recipes-graphics/lxdm/lxdm/0001-greeter-set-visible-when-switch-to-input-user.patch create mode 100644 meta-oe/recipes-graphics/lxdm/lxdm/0002-greeter-gdk.c-fix-typo.patch create mode 100644 meta-oe/recipes-graphics/lxdm/lxdm/0003-check-whether-password-expired-with-pam.patch create mode 100644 meta-oe/recipes-graphics/lxdm/lxdm/0004-lxdm.c-add-function-to-change-password-with-pam.patch create mode 100644 meta-oe/recipes-graphics/lxdm/lxdm/0005-ui.c-handle-password-expire-and-update-new-password.patch create mode 100644 meta-oe/recipes-graphics/lxdm/lxdm/0006-themes-Industrial-add-info-label-in-ui.patch create mode 100644 meta-oe/recipes-graphics/lxdm/lxdm/0007-greeter.c-support-to-update-expired-password.patch create mode 100644 meta-oe/recipes-graphics/lxdm/lxdm/0008-greeter.c-show-information-on-gtk-label-info.patch
meta-oe/recipes-graphics/lxdm/lxdm/0001-greeter-set-visible-when-switch-to-input-user.patch new file +33 -0
@@ -0,0 +1,33 @@ +From f6b8e141e00c4837239f5b69af4e7bee1204abba Mon Sep 17 00:00:00 2001 +From: Kai Kang <[email protected]> +Date: Thu, 17 Dec 2020 10:18:58 +0800 +Subject: [PATCH 1/8] greeter: set visible when switch to input user + +It switches back to input user entry if press Esc key when input the +password. At this time, the user name input is shown as '*' rather than +plain text. Set the visibility to fix this issue. And clean the text as +well. + +Upstream-Status: Submitted [https://sourceforge.net/p/lxdm/code/merge-requests/1/] + +Signed-off-by: Kai Kang <[email protected]> +--- + src/greeter.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/src/greeter.c b/src/greeter.c +index 2c6e5be..f100c72 100644 +--- a/src/greeter.c ++++ b/src/greeter.c +@@ -139,6 +139,8 @@ static void switch_to_input_user(void) + pass=NULL; + } + gtk_label_set_text( GTK_LABEL(prompt), _("User:")); ++ gtk_entry_set_text(GTK_ENTRY(login_entry), ""); ++ gtk_entry_set_visibility(GTK_ENTRY(login_entry), TRUE); + gtk_widget_show(prompt); + if(user_list) + { +-- +2.25.1 +
meta-oe/recipes-graphics/lxdm/lxdm/0002-greeter-gdk.c-fix-typo.patch new file +28 -0
@@ -0,0 +1,28 @@ +From 3a3c5c644c9790cb3f88f3ce3757c2803cff90c5 Mon Sep 17 00:00:00 2001 +From: Kai Kang <[email protected]> +Date: Thu, 17 Dec 2020 14:32:40 +0800 +Subject: [PATCH 2/8] greeter-gdk.c: fix typo + +Upstream-Status: Submitted [https://sourceforge.net/p/lxdm/code/merge-requests/1/] + +Signed-off-by: Kai Kang <[email protected]> +--- + src/greeter-gdk.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/greeter-gdk.c b/src/greeter-gdk.c +index 1b27d2e..5aa3e7f 100644 +--- a/src/greeter-gdk.c ++++ b/src/greeter-gdk.c +@@ -299,7 +299,7 @@ void ui_prepare(void) + attr.wclass = GDK_INPUT_OUTPUT; + win = gdk_window_new(root, &attr, mask); + gdk_window_set_decorations(win,0); +- gdk_window_set_title(win,"lxdm-greter-gdk"); ++ gdk_window_set_title(win,"lxdm-greeter-gdk"); + + scr=gdk_screen_get_default(); + g_signal_connect(scr, "size-changed", G_CALLBACK(on_screen_size_changed), win); +-- +2.25.1 +
meta-oe/recipes-graphics/lxdm/lxdm/0003-check-whether-password-expired-with-pam.patch new file +46 -0
46 lines not on this page · raw message
meta-oe/recipes-graphics/lxdm/lxdm/0004-lxdm.c-add-function-to-change-password-with-pam.patch new file +124 -0
124 lines not on this page · raw message
meta-oe/recipes-graphics/lxdm/lxdm/0005-ui.c-handle-password-expire-and-update-new-password.patch new file +53 -0
53 lines not on this page · raw message
meta-oe/recipes-graphics/lxdm/lxdm/0006-themes-Industrial-add-info-label-in-ui.patch new file +124 -0
124 lines not on this page · raw message
meta-oe/recipes-graphics/lxdm/lxdm/0007-greeter.c-support-to-update-expired-password.patch new file +180 -0
180 lines not on this page · raw message
meta-oe/recipes-graphics/lxdm/lxdm/0008-greeter.c-show-information-on-gtk-label-info.patch new file +99 -0
99 lines not on this page · raw message
meta-oe/recipes-graphics/lxdm/lxdm_0.5.3.bb +8 -0
@@ -9,6 +9,14 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/project/${BPN}/${BPN}%20${PV}/${BPN}-${PV}.tar. file://0002-let-autotools-create-lxdm.conf.patch \ file://0003-check-for-libexecinfo-providing-backtrace-APIs.patch \ file://0004-fix-css-under-gtk-3.20.patch \ + file://0001-greeter-set-visible-when-switch-to-input-user.patch \ + file://0002-greeter-gdk.c-fix-typo.patch \ + file://0003-check-whether-password-expired-with-pam.patch \ + file://0004-lxdm.c-add-function-to-change-password-with-pam.patch \ + file://0005-ui.c-handle-password-expire-and-update-new-password.patch \ + file://0006-themes-Industrial-add-info-label-in-ui.patch \ + file://0007-greeter.c-support-to-update-expired-password.patch \ + file://0008-greeter.c-show-information-on-gtk-label-info.patch \ " SRC_URI[md5sum] = "061caae432634e6db38bbdc84bc6ffa0" SRC_URI[sha256sum] = "4891efee81c72a400cc6703e40aa76f3f3853833d048b72ec805da0f93567f2f"
Signature · 1 line
2.25.1
Quoted 10 lines · kai
From: Kai Kang <[email protected]>
Update lxdm to support change user password when the password expired. It also add a label to show useful information to tell user that 'Authentication failed' or 'password expired' etc.
It only work with distro feature 'pam'.
Signed-off-by Kai Kang <[email protected]>
Hi Kai,
* I'm impressed
* Seems you are still looking for a dm and yes the gdm issue you reported is still on my list but first I'd like to have more rust to de-rotten gnome...
Cheers,
Andreas
Quoted 9 lines · Andreas Müller
Quoted 8 lines · kai
From: Kai Kang <[email protected]>
Update lxdm to support change user password when the password expired. It also add a label to show useful information to tell user that 'Authentication failed' or 'password expired' etc.
It only work with distro feature 'pam'.
Quoted 7 lines
Quoted 1 line
Signed-off-by Kai Kang <[email protected]>Hi Kai,
* I'm impressed
* Seems you are still looking for a dm and yes the gdm issue you reported is still on my list but first I'd like to have more rust to de-rotten gnome...
Hi Andreas,
Thanks. I'll put some time on the gdm issue too. :)
Regards,
Kai
Quoted 4 lines
Cheers,
Andreas
Signature · 2 lines
Kai Kang Wind River Linux