From b183a30b2b3983a7f827dc6fd44eb16ac64904ce Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 17 May 2010 13:41:01 +1000 Subject: s4:credentials Add in tracking of the password last set time We perhaps need a more general API here, but for now extend the credentials API to return the password last changed time that the s3compat layer will need. Andrew Bartlett --- source4/auth/credentials/credentials.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'source4/auth/credentials/credentials.c') diff --git a/source4/auth/credentials/credentials.c b/source4/auth/credentials/credentials.c index 6f7630a206..a129efe919 100644 --- a/source4/auth/credentials/credentials.c +++ b/source4/auth/credentials/credentials.c @@ -748,6 +748,25 @@ _PUBLIC_ void cli_credentials_set_secure_channel_type(struct cli_credentials *cr cred->secure_channel_type = secure_channel_type; } +/** + * Return NETLOGON secure chanel type + */ + +_PUBLIC_ time_t cli_credentials_get_password_last_changed_time(struct cli_credentials *cred) +{ + return cred->password_last_changed_time; +} + +/** + * Set NETLOGON secure channel type + */ + +_PUBLIC_ void cli_credentials_set_password_last_changed_time(struct cli_credentials *cred, + time_t last_changed_time) +{ + cred->password_last_changed_time = last_changed_time; +} + /** * Return NETLOGON secure chanel type */ -- cgit