]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
samba-tool: Allow LDB URL to be None
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Fri, 25 Aug 2023 00:14:23 +0000 (12:14 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 28 Aug 2023 02:04:36 +0000 (02:04 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15458

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/netcmd/domain/level.py

index c4361eed342ecc72dc8f4be085905fcfb76882db..7300561c30c6aa2a1f463dc0f5fd0c2169a09f04 100644 (file)
@@ -69,7 +69,7 @@ class cmd_domain_level(Command):
         domain_dn = samdb.domain_dn()
 
         in_transaction = False
-        if subcommand == "raise" and not H.startswith("ldap"):
+        if subcommand == "raise" and (H is None or not H.startswith("ldap")):
             samdb.transaction_start()
             in_transaction = True
             try: