[Samba] [PATCH] Re: samba-tool domain classicupgrade with LDAP backend

Andrew Bartlett abartlet at samba.org
Fri Jan 4 02:52:49 MST 2013

On Fri, 2013-01-04 at 10:18 +0100, Juan Asensio Sánchez wrote:
> Hi
> 2013/1/4 Andrew Bartlett <abartlet at samba.org>
>         On Fri, 2013-01-04 at 08:57 +0100, Juan Asensio Sánchez wrote:
>         > Hi
>         >
>         >
>         > I forgot to explain my scenario... I have one Samba3
>         test-production
>         > with LDAP backend (it's a test server, but used
>         intensively), so to
>         > make the tests I created a new virtual machine in a
>         separated/isolated
>         > network. This is a clean CentOS 6.3 machine, just installed
>         the
>         > compile dependencies and then compile and install Samba; I
>         didn't
>         > modify resolv.conf, neither nscd.conf, so the name
>         resolution is using
>         > an "official" DNS server. After posting the message, I
>         continued
>         > investigating and I found this message
>         >
>         https://lists.samba.org/archive/samba-technical/2012-September/086979.html, where the user reports the same problem than me. The solution there is to use the IP address instead of the DNS name, and he says that the problem can be due to his configuration, but I have the same problem... so I could think this is bug, not a server configuration problem I can connect perfectly to the LDAP server, use ldapsearch command, etc. Indeed, the script retrieves correctly the users, but only fails when exporting the Posix attributes).
>         What is your 'name resolve order' parameter set to?
> name resolve order = wins lmhosts hosts bcast

Thanks, that is the clue I needed.  The attached patch should help.

Andrew Bartlett

Andrew Bartlett                                http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-s4-libcli-resolv-Add-alias-hosts-for-host-in-name-re.patch
Type: text/x-patch
Size: 1092 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba/attachments/20130104/3d73409d/attachment.bin>

More information about the samba mailing list