diff options
author | Karolin Seeger <kseeger@samba.org> | 2008-11-17 14:02:50 +0100 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2008-11-17 14:02:50 +0100 |
commit | 5f16d0a11742d5e684d21072d03667a1dc4c3adc (patch) | |
tree | 31ac9517fda7e936e2dc24ce31402bb5a2c05260 /source/libnet/libnet_join.c | |
parent | 7ec48d0020aa48858d0a673a61b02007e02e1ef2 (diff) | |
download | samba-5f16d0a11742d5e684d21072d03667a1dc4c3adc.tar.gz |
Revert "If name_to_fqdn fails, retry with the dns domain the DC gave us"
This reverts commit 82a086fb6f70dd6b725e4976293bc377a6a90f3a.
Diffstat (limited to 'source/libnet/libnet_join.c')
-rw-r--r-- | source/libnet/libnet_join.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/source/libnet/libnet_join.c b/source/libnet/libnet_join.c index 7451cb27c6f..86cbce02242 100644 --- a/source/libnet/libnet_join.c +++ b/source/libnet/libnet_join.c @@ -357,15 +357,10 @@ static ADS_STATUS libnet_join_set_machine_spn(TALLOC_CTX *mem_ctx, strupper_m(spn); spn_array[0] = spn; - if (!name_to_fqdn(my_fqdn, r->in.machine_name) - || (strchr(my_fqdn, '.') == NULL)) { - fstr_sprintf(my_fqdn, "%s.%s", r->in.machine_name, - r->out.dns_domain_name); - } - - strlower_m(my_fqdn); + if (name_to_fqdn(my_fqdn, r->in.machine_name) && + !strequal(my_fqdn, r->in.machine_name)) { - if (!strequal(my_fqdn, r->in.machine_name)) { + strlower_m(my_fqdn); spn = talloc_asprintf(mem_ctx, "HOST/%s", my_fqdn); if (!spn) { return ADS_ERROR_LDAP(LDAP_NO_MEMORY); |