diff options
author | Sumit Bose <sbose@redhat.com> | 2014-01-13 10:43:33 +0100 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2014-01-15 16:26:16 +0100 |
commit | 0292b1726b7d73e60c1bca0612d67fecb0c2347d (patch) | |
tree | 9454027d65c47f730669cf74e86df1fa4cae1422 | |
parent | 2630ecbaff6d79ddf8e8961c585a25784935027f (diff) | |
download | freeipa.git-0292b1726b7d73e60c1bca0612d67fecb0c2347d.tar.gz freeipa.git-0292b1726b7d73e60c1bca0612d67fecb0c2347d.tar.xz freeipa.git-0292b1726b7d73e60c1bca0612d67fecb0c2347d.zip |
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
-rw-r--r-- | daemons/ipa-slapi-plugins/ipa-cldap/ipa_cldap_netlogon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/daemons/ipa-slapi-plugins/ipa-cldap/ipa_cldap_netlogon.c b/daemons/ipa-slapi-plugins/ipa-cldap/ipa_cldap_netlogon.c index 9ba05829..c03172d4 100644 --- a/daemons/ipa-slapi-plugins/ipa-cldap/ipa_cldap_netlogon.c +++ b/daemons/ipa-slapi-plugins/ipa-cldap/ipa_cldap_netlogon.c @@ -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 */ |