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

Andrew Bartlett abartlet at samba.org
Tue Jan 8 00:42:08 MST 2013


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


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




More information about the samba mailing list