The Samba-Bugzilla – Attachment 5982 Details for
Bug 7697
get_dc_name() fails when using ads and no domain is specified
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to get_dc_name()
samba-3.5.5-namequery_dc.patch (text/plain), 713 bytes, created by
Ryan Koski
on 2010-09-25 10:07:22 UTC
(
hide
)
Description:
patch to get_dc_name()
Filename:
MIME Type:
Creator:
Ryan Koski
Created:
2010-09-25 10:07:22 UTC
Size:
713 bytes
patch
obsolete
>diff -ru samba-3.5.5.orig/source3/libsmb/namequery_dc.c samba-3.5.5/source3/libsmb/namequery_dc.c >--- samba-3.5.5.orig/source3/libsmb/namequery_dc.c 2010-09-09 07:22:50.000000000 -0700 >+++ samba-3.5.5/source3/libsmb/namequery_dc.c 2010-09-25 06:56:59.000000000 -0700 >@@ -233,13 +233,9 @@ > ret = ads_dc_name(domain, realm, &dc_ss, srv_name); > } > >- if (!domain) { >- /* if we have only the realm we can't do anything else */ >- return False; >- } >- >- if (!ret) { >- /* fall back on rpc methods if the ADS methods fail */ >+ if (!ret && (domain && *domain)) { >+ /* fall back on rpc methods if the ADS methods fail, >+ but only if we know the domain name */ > ret = rpc_dc_name(domain, srv_name, &dc_ss); > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 7697
: 5982