mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
winbindd_cm: Replace the use of lp_realm() with our_domain->alt_name.
Reduce the use of config parameters with run time information after discussion
with Guenther.
(This used to be commit 57d596395d
)
This commit is contained in:
parent
175909f4e1
commit
dd7cf3464d
@ -710,8 +710,14 @@ static NTSTATUS get_trust_creds(const struct winbindd_domain *domain,
|
||||
|
||||
if (machine_krb5_principal != NULL)
|
||||
{
|
||||
struct winbindd_domain *our_domain = find_our_domain();
|
||||
|
||||
if (!our_domain) {
|
||||
return NT_STATUS_CANT_ACCESS_DOMAIN_INFO;
|
||||
}
|
||||
|
||||
if (asprintf(machine_krb5_principal, "%s$@%s",
|
||||
account_name, lp_realm()) == -1)
|
||||
account_name, our_domain->alt_name) == -1)
|
||||
{
|
||||
return NT_STATUS_NO_MEMORY;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user