1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-11 00:59:11 +03:00

Add helper object Hostconfig to make it easier to get to e.g. the

SAM database.
(This used to be commit be75b2a36e)
This commit is contained in:
Jelmer Vernooij
2008-08-01 21:12:37 +02:00
parent 1c94f3e95d
commit 47124efe42
3 changed files with 39 additions and 3 deletions

View File

@ -21,6 +21,7 @@
import optparse
from credentials import Credentials, AUTO_USE_KERBEROS, DONT_USE_KERBEROS, MUST_USE_KERBEROS
from hostconfig import Hostconfig
__docformat__ = "restructuredText"
@ -52,6 +53,9 @@ class SambaOptions(optparse.OptionGroup):
lp.load_default()
return lp
def get_hostconfig(self):
return Hostconfig(self.get_loadparm())
class VersionOptions(optparse.OptionGroup):
"""Command line option for printing Samba version."""