summaryrefslogtreecommitdiff
path: root/source3/libads/krb5_setpw.c
diff options
context:
space:
mode:
authorJim McDonough <jmcd@samba.org>2004-03-24 17:32:55 +0000
committerJim McDonough <jmcd@samba.org>2004-03-24 17:32:55 +0000
commit9a8e30d04b1cfc53e8c8949a56d4f1cf5aa26501 (patch)
treee483ee3c5a38bfd45503d3bd18c0b25904949edc /source3/libads/krb5_setpw.c
parent7d7b6190b0d07441ded54f096e7f95f51dc31024 (diff)
downloadsamba-9a8e30d04b1cfc53e8c8949a56d4f1cf5aa26501.tar.gz
samba-9a8e30d04b1cfc53e8c8949a56d4f1cf5aa26501.tar.bz2
samba-9a8e30d04b1cfc53e8c8949a56d4f1cf5aa26501.zip
Fix bugzilla # 1208
Winbind tickets expired. We now check the expiration time, and acquire new tickets. We couln't rely on renewing them, because if we didn't get a request before they expired, we wouldn't have renewed them. Also, there is a one-week limit in MS on renewal life, so new tickets would have been needed after a week anyway. Default is 10 hours, so we should only be acquiring them that often, unless the configuration on the DC is changed (and the minimum is 1 hour). (This used to be commit c2436c433afaab4006554a86307f76b6689d6929)
Diffstat (limited to 'source3/libads/krb5_setpw.c')
-rw-r--r--source3/libads/krb5_setpw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libads/krb5_setpw.c b/source3/libads/krb5_setpw.c
index 9cf15221a8..16d3df83e9 100644
--- a/source3/libads/krb5_setpw.c
+++ b/source3/libads/krb5_setpw.c
@@ -642,7 +642,7 @@ ADS_STATUS kerberos_set_password(const char *kpasswd_server,
{
int ret;
- if ((ret = kerberos_kinit_password(auth_principal, auth_password, time_offset))) {
+ if ((ret = kerberos_kinit_password(auth_principal, auth_password, time_offset, NULL))) {
DEBUG(1,("Failed kinit for principal %s (%s)\n", auth_principal, error_message(ret)));
return ADS_ERROR_KRB5(ret);
}