summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-11-30 13:24:01 +1100
committerAndrew Tridgell <tridge@samba.org>2010-12-01 11:03:25 +1100
commit062378c1b4ba4f199cee6d4368e87f1e0ba820a6 (patch)
tree78e6ca9897b02079a70b903599f06b6f8b81640d /source4
parent7526171ce596daf008798bd2ab63bb57c08b184a (diff)
downloadsamba-062378c1b4ba4f199cee6d4368e87f1e0ba820a6.tar.gz
samba-062378c1b4ba4f199cee6d4368e87f1e0ba820a6.tar.bz2
samba-062378c1b4ba4f199cee6d4368e87f1e0ba820a6.zip
s4-provision: fixed check for missing msDS-SupportedEncryptionTypes
thanks to Jelmer for spotting this
Diffstat (limited to 'source4')
-rw-r--r--source4/scripting/python/samba/provision/__init__.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/source4/scripting/python/samba/provision/__init__.py b/source4/scripting/python/samba/provision/__init__.py
index e184ad8340..7f1969924a 100644
--- a/source4/scripting/python/samba/provision/__init__.py
+++ b/source4/scripting/python/samba/provision/__init__.py
@@ -1642,10 +1642,9 @@ def provision(setup_dir, logger, session_info, credentials, smbconf=None,
name="msDS-SupportedEncryptionTypes")
samdb.modify(msg)
except ldb.LdbError, (enum, estr):
- if enum == ldb.ERR_NO_SUCH_ATTRIBUTE:
+ if enum != ldb.ERR_NO_SUCH_ATTRIBUTE:
# It might be that this attribute does not exist in this schema
- pass
- raise
+ raise
if serverrole == "domain controller":
secretsdb_setup_dns(secrets_ldb, setup_path, names,