summaryrefslogtreecommitdiff
path: root/source4/auth/credentials/credentials.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2010-05-17 13:41:01 +1000
committerAndrew Bartlett <abartlet@samba.org>2010-05-18 13:20:22 +1000
commitb183a30b2b3983a7f827dc6fd44eb16ac64904ce (patch)
treee48bb1f357b795a0f318d562e86a459e02af4823 /source4/auth/credentials/credentials.c
parent6324a0f59f78dff6501627518824e708aa3dc257 (diff)
downloadsamba-b183a30b2b3983a7f827dc6fd44eb16ac64904ce.tar.gz
samba-b183a30b2b3983a7f827dc6fd44eb16ac64904ce.tar.bz2
samba-b183a30b2b3983a7f827dc6fd44eb16ac64904ce.zip
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
Diffstat (limited to 'source4/auth/credentials/credentials.c')
-rw-r--r--source4/auth/credentials/credentials.c19
1 files changed, 19 insertions, 0 deletions
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
@@ -752,6 +752,25 @@ _PUBLIC_ void cli_credentials_set_secure_channel_type(struct cli_credentials *cr
* 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
+ */
+
_PUBLIC_ enum netr_SchannelType cli_credentials_get_secure_channel_type(struct cli_credentials *cred)
{
return cred->secure_channel_type;