Bug 100421

Summary: user: export password expiration numbers from shadow file
Product: accountsservice Reporter: Ray Strode [halfline] <rstrode>
Component: generalAssignee: Matthias Clasen <mclasen>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium CC: marius.vollmer, mcatanzaro, rstrode, stefw
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: user: export password expiration numbers from shadow file
lib: add getter for expiration policy numbers

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.