mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
s3:libnet: Convert myalias to lower case
This will be more consistent as it is a dnsname. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
0e96092c18
commit
382c300acd
@ -596,6 +596,10 @@ static ADS_STATUS libnet_join_set_machine_spn(TALLOC_CTX *mem_ctx,
|
||||
fstr_sprintf(my_alias, "%s.%s",
|
||||
*netbios_aliases,
|
||||
lp_dnsdomain());
|
||||
if (!strlower_m(my_alias)) {
|
||||
status = ADS_ERROR_LDAP(LDAP_NO_MEMORY);
|
||||
goto done;
|
||||
}
|
||||
|
||||
spn = talloc_asprintf(frame, "HOST/%s", my_alias);
|
||||
if (spn == NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user