s4-provision: fixed eadb automatic and manual setting in provision
[ira/wip.git] / source4 / scripting / python / samba / provision.py
index b6c39cbb66ffdacc59f0c8c11f1a0e806f5cb93d..b5f37b555ae2526273f6582eedb9fba375036af5 100644 (file)
@@ -590,7 +590,7 @@ def make_smbconf(smbconf, setup_path, hostname, domain, realm, serverrole,
     #Load non-existant file
     if os.path.exists(smbconf):
         lp.load(smbconf)
-    if eadb:
+    if eadb and not lp.get("posix:eadb"):
         if targetdir is not None:
             privdir = os.path.join(targetdir, "private")
         else: