Bug 100421 - user: export password expiration numbers from shadow file
Summary: user: export password expiration numbers from shadow file
Status: RESOLVED FIXED
Alias: None
Product: accountsservice
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: All All
: medium normal
Assignee: Matthias Clasen
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-27 17:53 UTC by Ray Strode [halfline]
Modified: 2017-06-28 21:44 UTC (History)
4 users (show)

See Also:
i915 platform:
i915 features:


Attachments
user: export password expiration numbers from shadow file (14.27 KB, patch)
2017-03-27 17:53 UTC, Ray Strode [halfline]
Details | Splinter Review
lib: add getter for expiration policy numbers (9.15 KB, patch)
2017-03-27 18:31 UTC, Ray Strode [halfline]
Details | Splinter Review

Description Ray Strode [halfline] 2017-03-27 17:53:21 UTC
If the desktop wants to display a notification about pending password
expiration it needs some way to query that information from the user.

This commit reads those numbers from shadow and makes them available
to the caller.
Comment 1 Ray Strode [halfline] 2017-03-27 17:53:28 UTC
Created attachment 130487 [details] [review]
user: export password expiration numbers from shadow file
Comment 2 Ray Strode [halfline] 2017-03-27 17:53:39 UTC
Attachment 130487 [details] pushed as 60fb4c4 - user: export password expiration numbers from shadow file
Comment 3 Ray Strode [halfline] 2017-03-27 18:31:29 UTC
Created attachment 130489 [details] [review]
lib: add getter for expiration policy numbers

This commit just adds a sync wrapper function around the new
GetPasswordExpirationPolicy bus method
Comment 4 Ray Strode [halfline] 2017-03-27 18:31:37 UTC
Attachment 130489 [details] pushed as f7bffca - lib: add getter for expiration policy numbers
Comment 5 Michael Catanzaro 2017-06-28 21:44:04 UTC
OK halfline, look at this patch :P

 /**
+ * act_user_get_login_history: <-- wrong function name
+ * @user: the user object to query.
+ * @expiration_time: time users passwor expires <-- typo
+ * @last_change_time,
+ * @min_days_between_changes,
+ * @max_days_between_changes,
+ * @days_to_warn,
+ * @days_after_expiration_until_lock)
+ *
+ * Assigns a new email to @user. <-- nope
+ *
+ * Note this function is synchronous and ignores errors.
+ **/
+void
+act_user_get_password_expiration_policy (ActUser *user,


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.