s3: libsmb: Rename get_sorted_dc_list_sa() -> get_sorted_dc_list().
authorJeremy Allison <jra@samba.org>
Wed, 9 Sep 2020 01:07:28 +0000 (18:07 -0700)
committerNoel Power <npower@samba.org>
Tue, 15 Sep 2020 10:09:39 +0000 (10:09 +0000)
Everyone now uses samba_sockaddr arrays.

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

index 0217e38d406acb5f9874bae4285124d03660ed54..f7f0ee432133e2f69d88374e008907592bc2f3d3 100755 (executable)
@@ -393,7 +393,7 @@ static NTSTATUS resolve_and_ping_netbios(ADS_STRUCT *ads,
        DEBUG(6, ("resolve_and_ping_netbios: (cldap) looking for domain '%s'\n",
                  domain));
 
-       status = get_sorted_dc_list_sa(talloc_tos(),
+       status = get_sorted_dc_list(talloc_tos(),
                                domain,
                                NULL,
                                &sa_list,
@@ -444,7 +444,7 @@ static NTSTATUS resolve_and_ping_dns(ADS_STRUCT *ads, const char *sitename,
        DEBUG(6, ("resolve_and_ping_dns: (cldap) looking for realm '%s'\n",
                  realm));
 
-       status = get_sorted_dc_list_sa(talloc_tos(),
+       status = get_sorted_dc_list(talloc_tos(),
                                realm,
                                sitename,
                                &sa_list,
index a772d57b670862462d0813b09e7af765e86e6adb..de236cff0d13333d83a80aae717937989ea5d2d7 100644 (file)
@@ -4154,7 +4154,7 @@ static NTSTATUS get_dc_list(TALLOC_CTX *ctx,
  Returns a samba_sockaddr array.
 *********************************************************************/
 
-NTSTATUS get_sorted_dc_list_sa(TALLOC_CTX *ctx,
+NTSTATUS get_sorted_dc_list(TALLOC_CTX *ctx,
                                const char *domain,
                                const char *sitename,
                                struct samba_sockaddr **sa_list_ret,
index 5dcdaa9f672bba4edd91a9391ebb9b9ff4dd100f..2342c5a2164c881216ceadb8e4cb46df76fda198 100644 (file)
@@ -110,7 +110,7 @@ NTSTATUS resolve_name_list(TALLOC_CTX *ctx,
                unsigned int *p_num_entries);
 bool find_master_ip(const char *group, struct sockaddr_storage *master_ss);
 bool get_pdc_ip(const char *domain, struct sockaddr_storage *pss);
-NTSTATUS get_sorted_dc_list_sa(TALLOC_CTX *ctx,
+NTSTATUS get_sorted_dc_list(TALLOC_CTX *ctx,
                        const char *domain,
                        const char *sitename,
                        struct samba_sockaddr **sa_list_ret,
index 75377ce79cee0137269d8630143e9fd02e424849..03eea8a10a8e4241e0f8b2cc0abde57435ef8f1f 100644 (file)
@@ -173,7 +173,7 @@ static bool rpc_dc_name(const char *domain,
 
        /* get a list of all domain controllers */
 
-       result = get_sorted_dc_list_sa(talloc_tos(),
+       result = get_sorted_dc_list(talloc_tos(),
                                domain,
                                NULL,
                                &sa_list,
index 46acd31f3798a166bf7d7d93add1486ce98e9d64..030296aba371525813781de6cc964d06cc378bc3 100644 (file)
@@ -214,7 +214,7 @@ static int net_lookup_dc(struct net_context *c, int argc, const char **argv)
        d_printf("%s\n", pdc_str);
 
        sitename = sitename_fetch(talloc_tos(), domain);
-       status = get_sorted_dc_list_sa(talloc_tos(),
+       status = get_sorted_dc_list(talloc_tos(),
                                domain,
                                sitename,
                                &sa_list,
index 929b00fa1ee4d1d4067bb66c048bff6500228868..344eac2804b1e532a9e79765e473153eae4a76c3 100644 (file)
@@ -1563,7 +1563,7 @@ static bool get_dcs(TALLOC_CTX *mem_ctx, struct winbindd_domain *domain,
 
                /* We need to make sure we know the local site before
                   doing any DNS queries, as this will restrict the
-                  get_sorted_dc_list_sa() call below to only fetching
+                  get_sorted_dc_list() call below to only fetching
                   DNS records for the correct site. */
 
                /* Find any DC to get the site record.
@@ -1576,7 +1576,7 @@ static bool get_dcs(TALLOC_CTX *mem_ctx, struct winbindd_domain *domain,
                if (sitename) {
 
                        /* Do the site-specific AD dns lookup first. */
-                       (void)get_sorted_dc_list_sa(mem_ctx,
+                       (void)get_sorted_dc_list(mem_ctx,
                                        domain->alt_name,
                                        sitename,
                                        &sa_list,
@@ -1605,7 +1605,7 @@ static bool get_dcs(TALLOC_CTX *mem_ctx, struct winbindd_domain *domain,
                }
 
                /* Now we add DCs from the main AD DNS lookup. */
-               (void)get_sorted_dc_list_sa(mem_ctx,
+               (void)get_sorted_dc_list(mem_ctx,
                                domain->alt_name,
                                NULL,
                                &sa_list,
@@ -1631,7 +1631,7 @@ static bool get_dcs(TALLOC_CTX *mem_ctx, struct winbindd_domain *domain,
        /* Try standard netbios queries if no ADS and fall back to DNS queries
         * if alt_name is available */
        if (*num_dcs == 0) {
-               (void)get_sorted_dc_list_sa(mem_ctx,
+               (void)get_sorted_dc_list(mem_ctx,
                                        domain->name,
                                        NULL,
                                        &sa_list,
@@ -1639,7 +1639,7 @@ static bool get_dcs(TALLOC_CTX *mem_ctx, struct winbindd_domain *domain,
                                        false);
                if (salist_size == 0) {
                        if (domain->alt_name != NULL) {
-                               (void)get_sorted_dc_list_sa(mem_ctx,
+                               (void)get_sorted_dc_list(mem_ctx,
                                                domain->alt_name,
                                                NULL,
                                                &sa_list,