Don't reopen the sam.ldb again
authorAndrew Bartlett <abartlet@samba.org>
Fri, 11 Apr 2008 09:33:52 +0000 (19:33 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 11 Apr 2008 09:33:52 +0000 (19:33 +1000)
Andrew Bartlett
(This used to be commit b51b8a2d846284de4dff736fc18cf747c188de96)

source4/scripting/python/samba/provision.py

index 4f264b6fc9b05141fcb52e6aff74335e7536d111..a8d188e7a3e2359b5f6d4ff841ff8524e4d84dec 100644 (file)
@@ -741,8 +741,6 @@ def setup_samdb(path, setup_path, session_info, credentials, lp,
         return samdb
 
     message("Pre-loading the Samba 4 and AD schema")
-    samdb = SamDB(path, session_info=session_info, 
-                  credentials=credentials, lp=lp)
     samdb.set_domain_sid(domainsid)
     if serverrole == "domain controller":
         samdb.set_invocation_id(invocationid)