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.
Created attachment 130487 [details] [review]
user: export password expiration numbers from shadow file
Attachment 130487 [details] pushed as 60fb4c4 - user: export password expiration numbers from shadow file
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
Attachment 130489 [details] pushed as f7bffca - lib: add getter for expiration policy numbers
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.
+act_user_get_password_expiration_policy (ActUser *user,