mirror of
https://github.com/samba-team/samba.git
synced 2025-08-24 21:49:29 +03:00
s3: libsmb: Remove now unused get_kdc_list() (non-talloc version).
Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Noel Power <npower@samba.org>
This commit is contained in:
committed by
Noel Power
parent
11226af33e
commit
b7182c4417
@ -4013,38 +4013,6 @@ NTSTATUS get_sorted_dc_list( const char *domain,
|
||||
return NT_STATUS_OK;
|
||||
}
|
||||
|
||||
/*********************************************************************
|
||||
Get the KDC list - re-use all the logic in get_dc_list.
|
||||
*********************************************************************/
|
||||
|
||||
NTSTATUS get_kdc_list( const char *realm,
|
||||
const char *sitename,
|
||||
struct ip_service **ip_list,
|
||||
int *count)
|
||||
{
|
||||
bool ordered;
|
||||
NTSTATUS status;
|
||||
|
||||
*count = 0;
|
||||
*ip_list = NULL;
|
||||
|
||||
status = get_dc_list(realm, sitename, ip_list,
|
||||
count, DC_KDC_ONLY, &ordered);
|
||||
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
SAFE_FREE(*ip_list);
|
||||
*count = 0;
|
||||
return status;
|
||||
}
|
||||
|
||||
/* only sort if we don't already have an ordered list */
|
||||
if ( !ordered ) {
|
||||
sort_service_list(*ip_list, *count);
|
||||
}
|
||||
|
||||
return NT_STATUS_OK;
|
||||
}
|
||||
|
||||
/*********************************************************************
|
||||
Talloc version.
|
||||
Get the KDC list - re-use all the logic in get_dc_list.
|
||||
|
@ -114,10 +114,6 @@ NTSTATUS get_sorted_dc_list( const char *domain,
|
||||
struct ip_service **ip_list,
|
||||
int *count,
|
||||
bool ads_only );
|
||||
NTSTATUS get_kdc_list( const char *realm,
|
||||
const char *sitename,
|
||||
struct ip_service **ip_list,
|
||||
int *count);
|
||||
NTSTATUS get_kdc_list_talloc(TALLOC_CTX *ctx,
|
||||
const char *realm,
|
||||
const char *sitename,
|
||||
|
Reference in New Issue
Block a user