summaryrefslogtreecommitdiffstats
path: root/source4/scripting/python/samba/hostconfig.py
diff options
context:
space:
mode:
Diffstat (limited to 'source4/scripting/python/samba/hostconfig.py')
-rw-r--r--source4/scripting/python/samba/hostconfig.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/scripting/python/samba/hostconfig.py b/source4/scripting/python/samba/hostconfig.py
index 3e6dc6b1ddd..c50b944c987 100644
--- a/source4/scripting/python/samba/hostconfig.py
+++ b/source4/scripting/python/samba/hostconfig.py
@@ -37,7 +37,7 @@ class Hostconfig(object):
:param session_info: Session info to use
:param credentials: Credentials to access the SamDB with
"""
- return SamDB(url=self.lp.get("sam database"),
+ return SamDB(url=self.lp.samdb_url(),
session_info=session_info, credentials=credentials,
lp=self.lp)