mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
s3-libnet: Add libnet_join_get_machine_spns().
BUG: https://bugzilla.samba.org/show_bug.cgi?id=9984 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
This commit is contained in:
parent
5d58b92f8f
commit
7e0b8fcce5
@ -360,6 +360,26 @@ static ADS_STATUS libnet_join_find_machine_acct(TALLOC_CTX *mem_ctx,
|
||||
return status;
|
||||
}
|
||||
|
||||
static ADS_STATUS libnet_join_get_machine_spns(TALLOC_CTX *mem_ctx,
|
||||
struct libnet_JoinCtx *r,
|
||||
char ***spn_array,
|
||||
size_t *num_spns)
|
||||
{
|
||||
ADS_STATUS status;
|
||||
|
||||
if (r->in.machine_name == NULL) {
|
||||
return ADS_ERROR_SYSTEM(EINVAL);
|
||||
}
|
||||
|
||||
status = ads_get_service_principal_names(mem_ctx,
|
||||
r->in.ads,
|
||||
r->in.machine_name,
|
||||
spn_array,
|
||||
num_spns);
|
||||
|
||||
return status;
|
||||
}
|
||||
|
||||
/****************************************************************
|
||||
Set a machines dNSHostName and servicePrincipalName attributes
|
||||
****************************************************************/
|
||||
|
Loading…
Reference in New Issue
Block a user