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

Andrew Bartlett abartlet at samba.org
Tue Jan 8 00:48:24 MST 2013


On Tue, 2013-01-08 at 18:42 +1100, Andrew Bartlett wrote:
> On Fri, 2013-01-04 at 12:53 +0100, Juan Asensio Sánchez wrote:
> > Hi Andrew
> > 
> > 
> > Unfortunately, after applying the patch, recompile, uninstall and
> > install again, I am getting the same error:
> > 
> > # cd ~/samba-4.0.0
> > # patch -p1 <
> > ~/0001-s4-libcli-resolv-Add-alias-hosts-for-host-in-name-re.patch
> > # make uninstall && rm -Rf /usr/local/samba/ && make clean && make &&
> > make install
> > # samba-tool domain classicupgrade --dbdir ~/sambav3 --realm
> > SSCC.SACYL.TEST --use-xattrs=yes ~/sambav3/smb.conf -d9
> > 
> > ...
> > init_sam_from_ldap: Entry found for user: XXXXXXX
> > init_sam_from_ldap: Entry found for user: XXXXXXX$
> > Next rid = 12801001
> > Failed to connect to ldap URL 'ldap://XXXXXX.XXXXX.es' - LDAP client
> > internal error: NT_STATUS_BAD_NETWORK_NAME
> > Failed to connect to 'ldap://XXXXXX.XXXXX.es' with backend 'ldap':
> > (null)
> > Could not open ldb connection to ldap://XXXXXX.XXXXX.es, the error
> > message is: (1, None)
> 
> Can you set 'log level = 10' in your smb.conf and try again, I'm very
> must lost as to what the error is if this doesn't fix it.
> 
> Can you contact this host using ldbsearch?  eg:
> 
>  ldbsearch -H ldap://XXXXXX.XXXXX.es
> 
> Andrew Bartlett

Also, can you verify that this patch makes the classicupgrade fail right
after the failed connection, rather than hobbling on and failing due to
an un-set variable?

Thanks,

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-samba-tool-domain-classicupgrade-Make-failure-to-con.patch
Type: text/x-patch
Size: 1185 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba/attachments/20130108/9266e2f1/attachment.bin>


More information about the samba mailing list