Merge lp:~robert-ancell/lightdm/chauthtok into lp:lightdm

Proposed by Robert Ancell
Status: Merged
Approved by: Robert Ancell
Approved revision: 1882
Merged at revision: 1882
Proposed branch: lp:~robert-ancell/lightdm/chauthtok
Merge into: lp:lightdm
Diff against target: 41 lines (+6/-3)
3 files modified
src/session-child.c (+1/-1)
tests/scripts/login-new-authtok.conf (+1/-1)
tests/src/libsystem.c (+4/-1)
To merge this branch: bzr merge lp:~robert-ancell/lightdm/chauthtok
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Approve
Robert Ancell Approve
Review via email: mp+205185@code.launchpad.net

Commit message

Correctly invoke PAM to change authentication token

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:1882
No commit message was specified in the merge proposal. Click on the following link and set the commit message (if you want a jenkins rebuild you need to trigger it yourself):
https://code.launchpad.net/~robert-ancell/lightdm/chauthtok/+merge/205185/+edit-commit-message

http://jenkins.qa.ubuntu.com/job/lightdm-ci/232/
Executed test runs:
    SUCCESS: http://jenkins.qa.ubuntu.com/job/lightdm-trusty-amd64-ci/26
    SUCCESS: http://jenkins.qa.ubuntu.com/job/lightdm-trusty-armhf-ci/26

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/lightdm-ci/232/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Robert Ancell (robert-ancell) :
review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/session-child.c'
2--- src/session-child.c 2013-12-09 21:44:47 +0000
3+++ src/session-child.c 2014-02-06 15:10:47 +0000
4@@ -334,7 +334,7 @@
5 if (authentication_result == PAM_SUCCESS)
6 authentication_result = pam_acct_mgmt (pam_handle, 0);
7 if (authentication_result == PAM_NEW_AUTHTOK_REQD)
8- authentication_result = pam_chauthtok (pam_handle, 0);
9+ authentication_result = pam_chauthtok (pam_handle, PAM_CHANGE_EXPIRED_AUTHTOK);
10 }
11 else
12 authentication_result = PAM_SUCCESS;
13
14=== modified file 'tests/scripts/login-new-authtok.conf'
15--- tests/scripts/login-new-authtok.conf 2014-02-05 14:27:20 +0000
16+++ tests/scripts/login-new-authtok.conf 2014-02-06 15:10:47 +0000
17@@ -24,7 +24,7 @@
18
19 # Log into account that requires as password change
20 #?*GREETER-X-0 AUTHENTICATE USERNAME=new-authtok
21-#?GREETER-X-0 SHOW-PROMPT TEXT="Enter new password:"
22+#?GREETER-X-0 SHOW-PROMPT TEXT="Enter new password \(expired\):"
23 #?*GREETER-X-0 RESPOND TEXT="New password"
24 #?GREETER-X-0 AUTHENTICATION-COMPLETE USERNAME=new-authtok AUTHENTICATED=TRUE
25 #?*GREETER-X-0 START-SESSION
26
27=== modified file 'tests/src/libsystem.c'
28--- tests/src/libsystem.c 2013-09-10 05:13:57 +0000
29+++ tests/src/libsystem.c 2014-02-06 15:10:47 +0000
30@@ -1194,7 +1194,10 @@
31 msg = malloc (sizeof (struct pam_message *) * 1);
32 msg[0] = malloc (sizeof (struct pam_message));
33 msg[0]->msg_style = PAM_PROMPT_ECHO_OFF;
34- msg[0]->msg = "Enter new password:";
35+ if ((flags & PAM_CHANGE_EXPIRED_AUTHTOK) != 0)
36+ msg[0]->msg = "Enter new password (expired):";
37+ else
38+ msg[0]->msg = "Enter new password:";
39 result = pamh->conversation.conv (1, (const struct pam_message **) msg, &resp, pamh->conversation.appdata_ptr);
40 free (msg[0]);
41 free (msg);

Subscribers

People subscribed via source and target branches