Avoid overriding default ccache for ads operations.
[kai/samba.git] / source3 / libads / kerberos_util.c
index 7d49c02869f7a86279b0729d6cbe47f2546cd5fd..645b0582621d68dfd3454255c4a2350fe79d0e19 100644 (file)
@@ -63,9 +63,11 @@ int ads_kinit_password(ADS_STRUCT *ads)
                return KRB5_LIBOS_CANTREADPWD;
        }
 
-       ret = kerberos_kinit_password_ext(s, ads->auth.password, ads->auth.time_offset,
-                       &ads->auth.tgt_expire, NULL, NULL, False, False, ads->auth.renewable,
-                       NULL);
+       ret = kerberos_kinit_password_ext(s, ads->auth.password,
+                                         ads->auth.time_offset,
+                                         &ads->auth.tgt_expire, NULL,
+                                         ads->auth.ccache_name, false, false,
+                                         ads->auth.renewable, NULL);
 
        if (ret) {
                DEBUG(0,("kerberos_kinit_password %s failed: %s\n",