mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
CLDAP: do not prepend \\
For NETLOGON_NT_VERSION_5EX requests the prepended \\ is not expected in the PDC NetBIOS name. In general AD seems to be smart enough to handle the two \ signs. But if the NetBIOS name reaches the maximum of 15 character AD does not accept the responses anymore. Fixes https://fedorahosted.org/freeipa/ticket/4028
This commit is contained in:
@@ -163,7 +163,7 @@ static int ipa_cldap_encode_netlogon(char *fq_hostname, char *domain,
|
||||
nlr->domain_name = name;
|
||||
|
||||
/* copy the first 15 characters of the fully qualified hostname*/
|
||||
pdc_name = talloc_asprintf(nlr, "\\\\%.*s", NETBIOS_NAME_MAX, fq_hostname);
|
||||
pdc_name = talloc_asprintf(nlr, "%.*s", NETBIOS_NAME_MAX, fq_hostname);
|
||||
|
||||
for (p = pdc_name; *p; p++) {
|
||||
/* Create the NetBIOS name from the first segment of the hostname */
|
||||
|
||||
Reference in New Issue
Block a user