smbd: Fix cached dos attributes
[Samba.git] / python / samba / netcmd / domain / common.py
blob144d22ba67a5071c22c6733888cfbec79205d961
1 # domain management - common code
3 # Copyright Matthias Dieter Wallnoefer 2009
4 # Copyright Andrew Kroeger 2009
5 # Copyright Jelmer Vernooij 2007-2012
6 # Copyright Giampaolo Lauria 2011
7 # Copyright Matthieu Patou <mat@matws.net> 2011
8 # Copyright Andrew Bartlett 2008-2015
9 # Copyright Stefan Metzmacher 2012
11 # This program is free software; you can redistribute it and/or modify
12 # it under the terms of the GNU General Public License as published by
13 # the Free Software Foundation; either version 3 of the License, or
14 # (at your option) any later version.
16 # This program is distributed in the hope that it will be useful,
17 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 # GNU General Public License for more details.
21 # You should have received a copy of the GNU General Public License
22 # along with this program. If not, see <http://www.gnu.org/licenses/>.
25 from samba.netcmd import Option
26 from samba.samdb import get_default_backend_store
28 common_ntvfs_options = [
29 Option("--use-ntvfs", help="Use NTVFS for the fileserver (default = no)",
30 action="store_true")
33 common_provision_join_options = [
34 Option("--machinepass", type="string", metavar="PASSWORD",
35 help="choose machine password (otherwise random)"),
36 Option("--plaintext-secrets", action="store_true",
37 help="Store secret/sensitive values as plain text on disk" +
38 "(default is to encrypt secret/sensitive values)"),
39 Option("--backend-store", type="choice", metavar="BACKENDSTORE",
40 choices=["tdb", "mdb"],
41 help="Specify the database backend to be used "
42 "(default is %s)" % get_default_backend_store()),
43 Option("--backend-store-size", type="bytes", metavar="SIZE",
44 help="Specify the size of the backend database, currently only " +
45 "supported by lmdb backends (default is 8 Gb)."),
46 Option("--targetdir", metavar="DIR",
47 help="Set target directory (where to store provision)", type=str),
48 Option("-q", "--quiet", help="Be quiet", action="store_true"),
51 common_join_options = [
52 Option("--server", help="DC to join", type=str),
53 Option("--site", help="site to join", type=str),
54 Option("--domain-critical-only",
55 help="only replicate critical domain objects",
56 action="store_true"),
57 Option("--dns-backend", type="choice", metavar="NAMESERVER-BACKEND",
58 choices=["SAMBA_INTERNAL", "BIND9_DLZ", "NONE"],
59 help="The DNS server backend. SAMBA_INTERNAL is the builtin name server (default), "
60 "BIND9_DLZ uses samba4 AD to store zone information, "
61 "NONE skips the DNS setup entirely (this DC will not be a DNS server)",
62 default="SAMBA_INTERNAL"),
63 Option("-v", "--verbose", help="Be verbose", action="store_true")