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
>From 2f9a0fb067471d5dc411b4d77e2ed357c8303201 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett <abart...@samba.org> Date: Sat, 5 Jan 2013 15:19:09 +1100 Subject: [PATCH] samba-tool domain classicupgrade: Make failure to connect to the LDAP server fatal This avoids a different, less clear fatal condition later in the script. Andrew Bartlett --- source4/scripting/python/samba/upgrade.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source4/scripting/python/samba/upgrade.py b/source4/scripting/python/samba/upgrade.py index d680a7c..b068d44 100644 --- a/source4/scripting/python/samba/upgrade.py +++ b/source4/scripting/python/samba/upgrade.py @@ -788,7 +788,7 @@ Please fix this account before attempting to upgrade again try: ldb_object = Ldb(url, credentials=creds) except ldb.LdbError, e: - logger.warning("Could not open ldb connection to %s, the error message is: %s", url, e) + raise ProvisioningError("Could not open ldb connection to %s, the error message is: %s", url, e) else: break logger.info("Exporting posix attributes") -- 1.7.11.7
-- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba