The Samba-Bugzilla – Attachment 8199 Details for
Bug 9399
'samba-tool dns serverinfo localhost' returns 'Memory allocation error'
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Untested patch
0001-samba-tool-dns-Don-t-use-localhost-to-connect-to-loc.patch (text/plain), 922 bytes, created by
Kai Blin
on 2012-11-15 09:14:22 UTC
(
hide
)
Description:
Untested patch
Filename:
MIME Type:
Creator:
Kai Blin
Created:
2012-11-15 09:14:22 UTC
Size:
922 bytes
patch
obsolete
>From 8776feeea38777e12a1ce6ec574757dc99e92db4 Mon Sep 17 00:00:00 2001 >From: Kai Blin <kai@samba.org> >Date: Wed, 14 Nov 2012 11:32:06 +0100 >Subject: [PATCH] samba-tool dns: Don't use localhost to connect to local host > >Signed-off-by: Kai Blin <kai@samba.org> >--- > source4/scripting/python/samba/netcmd/dns.py | 2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) > >diff --git a/source4/scripting/python/samba/netcmd/dns.py b/source4/scripting/python/samba/netcmd/dns.py >index 8bd3249..c00d17a 100644 >--- a/source4/scripting/python/samba/netcmd/dns.py >+++ b/source4/scripting/python/samba/netcmd/dns.py >@@ -31,6 +31,8 @@ from samba.dcerpc import dnsp, dnsserver > > > def dns_connect(server, lp, creds): >+ if server.lower() == 'localhost': >+ server = '127.0.0.1' > binding_str = "ncacn_ip_tcp:%s[sign]" % server > dns_conn = dnsserver.dnsserver(binding_str, lp, creds) > return dns_conn >-- >1.7.0.4 >
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 9399
:
8199
|
8265