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:
@ -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."""
|
||||
|
Reference in New Issue
Block a user