]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:libads: remove unused time_offset from kerberos_kinit_password()
authorStefan Metzmacher <metze@samba.org>
Thu, 12 Sep 2024 17:56:05 +0000 (19:56 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 5 Dec 2024 16:46:37 +0000 (16:46 +0000)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/libads/kerberos.c
source3/libads/kerberos_proto.h
source3/libads/krb5_setpw.c

index ae01b9fe353eba8063df838e059a1fbec3f8cfd0..7f1ddbb82680f6664bb7a8208f458cb9b5fb8de2 100644 (file)
@@ -358,14 +358,13 @@ int create_kerberos_key_from_string(krb5_context context,
 
 int kerberos_kinit_password(const char *principal,
                            const char *password,
-                           int time_offset,
                            const char *cache_name)
 {
        return kerberos_kinit_password_ext(principal,
                                           password,
-                                          time_offset,
-                                          0,
                                           0,
+                                          NULL,
+                                          NULL,
                                           cache_name,
                                           False,
                                           False,
index d3eea0f1544f1ae52b7b5e68fbf631e071aaba36..cc8af444ceb23f838f4f8fe4c31be5611d336c65 100644 (file)
@@ -57,7 +57,6 @@ int ads_kdestroy(const char *cc_name);
 
 int kerberos_kinit_password(const char *principal,
                            const char *password,
-                           int time_offset,
                            const char *cache_name);
 bool create_local_private_krb5_conf_for_domain(const char *realm,
                                                const char *domain,
index 787de96f7765032a1c569efb994c53f65f18900a..34a13e458d256b09b13ff8ecd681087d7755d9b9 100644 (file)
@@ -346,7 +346,6 @@ ADS_STATUS kerberos_set_password(const char *auth_principal,
 
        ret = kerberos_kinit_password(auth_principal,
                                      auth_password,
-                                     0, /* timeoutset */
                                      ccname);
        if (ret != 0) {
                DBG_ERR("Failed kinit for principal %s (%s)\n",