s3: libads: Rename get_kdc_list_talloc() -> get_kdc_list().
authorJeremy Allison <jra@samba.org>
Wed, 26 Aug 2020 18:43:32 +0000 (11:43 -0700)
committerNoel Power <npower@samba.org>
Mon, 7 Sep 2020 13:23:40 +0000 (13:23 +0000)
It's the only version now.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Noel Power <npower@samba.org>
source3/libads/kerberos.c
source3/libsmb/namequery.c
source3/libsmb/namequery.h
source3/utils/net_lookup.c

index f8f47649dde0847759cb80b655c503870d0a0b79..d02d4d881e7efd7337cfce5a21c5ebf29b887334 100644 (file)
@@ -454,13 +454,13 @@ static char *get_kdc_ip_string(char *mem_ctx,
         */
 
        if (sitename) {
-               status = get_kdc_list_talloc(talloc_tos(),
+               status = get_kdc_list(talloc_tos(),
                                        realm,
                                        sitename,
                                        &ip_srv_site,
                                        &count_site);
                if (!NT_STATUS_IS_OK(status)) {
-                       DBG_ERR("get_kdc_list_talloc fail %s\n",
+                       DBG_ERR("get_kdc_list fail %s\n",
                                nt_errstr(status));
                        TALLOC_FREE(kdc_str);
                        goto out;
@@ -472,13 +472,13 @@ static char *get_kdc_ip_string(char *mem_ctx,
 
        /* Get all KDC's. */
 
-       status = get_kdc_list_talloc(talloc_tos(),
+       status = get_kdc_list(talloc_tos(),
                                        realm,
                                        NULL,
                                        &ip_srv_nonsite,
                                        &count_nonsite);
        if (!NT_STATUS_IS_OK(status)) {
-               DBG_ERR("get_kdc_list_talloc (site-less) fail %s\n",
+               DBG_ERR("get_kdc_list (site-less) fail %s\n",
                        nt_errstr(status));
                TALLOC_FREE(kdc_str);
                goto out;
index 23f816401c550694fe59e51e25b810fe0397279f..dcc1b026b5073558cfdb02c0f8fd79736960f42d 100644 (file)
@@ -4018,7 +4018,7 @@ NTSTATUS get_sorted_dc_list( const char *domain,
  Get the KDC list - re-use all the logic in get_dc_list.
 *********************************************************************/
 
-NTSTATUS get_kdc_list_talloc(TALLOC_CTX *ctx,
+NTSTATUS get_kdc_list(TALLOC_CTX *ctx,
                        const char *realm,
                        const char *sitename,
                        struct ip_service **ip_list_ret,
index 38c92cebccb42558b5d0c746d61d872b301f65e5..b726f2529576c1fc6aef7e1d7fd1d9e4c2b00e97 100644 (file)
@@ -114,7 +114,7 @@ NTSTATUS get_sorted_dc_list( const char *domain,
                        struct ip_service **ip_list,
                        int *count,
                        bool ads_only );
-NTSTATUS get_kdc_list_talloc(TALLOC_CTX *ctx,
+NTSTATUS get_kdc_list(TALLOC_CTX *ctx,
                        const char *realm,
                        const char *sitename,
                        struct ip_service **ip_list_ret,
index 706f41f689b40b0ce97330b6fae881198c0607a9..594a87d88161ddc4288bb235bb452480d2f9c676 100644 (file)
@@ -309,13 +309,13 @@ static int net_lookup_kdc(struct net_context *c, int argc, const char **argv)
                realm = (const char *) *get_host_realms;
        }
 
-       status = get_kdc_list_talloc(talloc_tos(),
+       status = get_kdc_list(talloc_tos(),
                                realm,
                                NULL,
                                &kdcs,
                                &num_kdcs);
        if (!NT_STATUS_IS_OK(status)) {
-               DBG_WARNING("get_kdc_list_talloc failed (%s)\n",
+               DBG_WARNING("get_kdc_list failed (%s)\n",
                        nt_errstr(status));
                krb5_free_host_realm(ctx, get_host_realms);
                krb5_free_context(ctx);