BUG: https://bugzilla.samba.org/show_bug.cgi?id=14406
Signed-off-by: Isaac Boukris <iboukris@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
char **ret = NULL;
size_t i, converted_size;
+ /*
+ * Windows DC implicitly adds a short name for each FQDN added to
+ * msDS-AdditionalDnsHostName, but it comes with a strage binary
+ * suffix "\0$" which we should ignore (see bug #14406).
+ */
+
values = ldap_get_values_len(ads->ldap.ld, msg, field);
if (values == NULL) {
return NULL;