summaryrefslogtreecommitdiff
path: root/source4/scripting/python/samba/netcmd/domain.py
AgeCommit message (Collapse)AuthorFilesLines
2012-10-03s4-provision: do not skip setting the acls on sysvolMatthieu Patou1-1/+1
Autobuild-User(master): Matthieu Patou <mat@samba.org> Autobuild-Date(master): Wed Oct 3 10:26:06 CEST 2012 on sn-devel-104
2012-09-27s4-python: Various formatting fixes.Jelmer Vernooij1-10/+10
* Trailing whitespace * use of "==" where "is" should be used * double spaces
2012-09-27samba-tool domain provision: DNS forwarder defaultRicky Nance1-0/+2
Provision would break with an exception if there was no value given for the DNS forwarder, this simply sets a default to "none". Signed-off-by: Jelmer Vernooij <jelmer@samba.org> Autobuild-User(master): Jelmer Vernooij <jelmer@samba.org> Autobuild-Date(master): Thu Sep 27 04:35:33 CEST 2012 on sn-devel-104
2012-09-26samba-tool: Hide 'samba-tool domain samba3upgrade'.Jelmer Vernooij1-7/+17
This subcommand is provided for backwards compatibility only; new use of it should be discouraged. Its new name is 'samba-tool domain classicupgrade'. Bug: https://bugzilla.samba.org/show_bug.cgi?id=9047
2012-09-25samba-tool domain provision: DNS forwarder is not a boolean.Jelmer Vernooij1-3/+3
Autobuild-User(master): Jelmer Vernooij <jelmer@samba.org> Autobuild-Date(master): Tue Sep 25 00:48:43 CEST 2012 on sn-devel-104
2012-09-24replace: Support setproctitle().Jelmer Vernooij1-2/+2
This uses the setproctitle() from libc, libsetproctitle or libbsd. If none is available it provides a dummy implementation.
2012-09-24samba-tool domain-provision: Avoid python2.5-isms.Jelmer Vernooij1-1/+4
2012-09-24samba-tool domain-provision: Fix docstring.Jelmer Vernooij1-2/+2
2012-09-16samba.netcmd: Formatting fixes, break lines.Jelmer Vernooij1-80/+84
2012-09-12s4 provision: Ask for the dns forwarder IP address during interactive provisionKai Blin1-9/+46
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-09-12s4 dns: use the internal DNS server per defaultKai Blin1-13/+13
2012-09-11s4:samba-tool: add 'samba-tool domain provision'Stefan Metzmacher1-1/+264
This is mostly a copy of the standalone source4/setup/provision. metze
2012-08-22s4-classicupgrade: Add --use-ntvfs optionAndrew Bartlett1-2/+4
This is an odd option, but is needed because I wish to add assertions about ACL setting that will not work in make test without the vfs_fake_acls module loaded. Andrew Bartlett
2012-07-06s4-samba-tool: Provide a samba-tool domain dcpromo that upgrades a member to ↵Andrew Bartlett1-0/+67
a DC This command is like dcpromo in that it upgrades the existing workstation account to be a domain controller. The SID (and therefore any file ownerships) is preserved. Andrew Bartlett
2012-06-25s4-join: Import DNS zones in AD DC joinAndrew Bartlett1-6/+12
2012-06-24s4-classicupgrade: Allow DNS backend to be specifiedAndrew Bartlett1-2/+10
2012-06-16s4-classicupgrade: Also ask testparm for 'smb passwd file'Andrew Bartlett1-0/+2
2012-06-16s4-classicupgrade: Use "samba classic" description for samba3 NT4-like ↵Andrew Bartlett1-8/+9
domains in samba3upgrade
2012-06-05Add '--use-ntvfs' option to 'samba-tool domain join'Andriy Syrovenko1-5/+8
2012-05-23s4: samba-tool is usable without export-keytab command, make sure it does ↵Alexander Bokovoy1-19/+22
not break When export_keytab is not compiled in (pure client-side Samba 4 build as with system MIT krb5), export-keytab command of samba-tool will not be available. Make sure it is not provided but its absence does not break the Python tool.
2012-04-19Added number of FSMO roles owned by the server we are trying to demote.Daniele Dario1-1/+1
2012-04-12s4-libnet: split export_keytab in a separate python module to avoid pulling ↵Alexander Bokovoy1-0/+1
in HDB dependency Signed-off-by: Andreas Schneider <asn@samba.org> Autobuild-User: Andreas Schneider <asn@cryptomilk.org> Autobuild-Date: Thu Apr 12 15:23:19 CEST 2012 on sn-devel-104
2012-03-13s4-python: Remove env from non-executable netcmd scripts.Andreas Schneider1-2/+0
2012-03-03s4:samba-tool domain level raise command - reference SAMDB object correctlyMatthias Dieter Wallnöfer1-3/+3
https://bugzilla.samba.org/show_bug.cgi?id=8787 Reviewed-by: Jelmer Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Sat Mar 3 12:54:21 CET 2012 on sn-devel-104
2012-02-16s4-scripting: samba-tool: Fix domain info usage messageBjörn Baumbach1-1/+1
Signed-off-by: Michael Adam <obnox@samba.org>
2012-02-07provision: Make sure target directory is created early.Jelmer Vernooij1-8/+14
This is necessary when using the target directory to store temporary files. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Tue Feb 7 02:45:37 CET 2012 on sn-devel-104
2012-02-07samba-tool: Add optiongroups, necessary for 'samba-tool domain ...'Jelmer Vernooij1-6/+13
2012-02-07Revert "samba-tool: moved takes_optiongroups definition to Command base class"Jelmer Vernooij1-2/+25
This reverts commit f6fa8684896b8f3f9f8b7bd3742c99906973274c. This keeps the main command class fairly slim, and makes it a bit more obvious where the arguments to run() are coming from. Conflicts: source4/scripting/python/samba/netcmd/__init__.py source4/scripting/python/samba/netcmd/domain.py source4/scripting/python/samba/netcmd/gpo.py source4/scripting/python/samba/netcmd/newuser.py source4/scripting/python/samba/netcmd/testparm.py source4/scripting/python/samba/netcmd/user.py source4/scripting/python/samba/tests/samba_tool/__init__.py
2012-02-07Use named argument 'dir' instead of 'prefix' on NamedTemporaryFile for domain.pyHoracio G. de Oro1-2/+2
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2012-01-24python: Change except: statement to except Exception:Amitay Isaacs1-1/+1
This way we only catch true exceptions and keyboard interrupts are not caught here. Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Tue Jan 24 03:32:40 CET 2012 on sn-devel-104
2011-12-05samba-tool: refuse to demote if the current DC has still rolesMatthieu Patou1-4/+12
2011-12-05samba-tool: add a function to cleanly demote a DCMatthieu Patou1-1/+236
samba-tool domain demote allow the local DC to properly demote against Microsoft and Samba DC.
2011-11-29s4:python: add --machinepass option to 'samba-tool domain join'Stefan Metzmacher1-5/+11
metze
2011-11-29s4-samba-tool: Add --principal argument to samba-tool domain exportkeytabAndrew Bartlett1-3/+4
This allows only a particular principal to be exported to the keytab. This is useful when setting up unix servers in a Samba controlled domain. Based on a request by Gémes Géza <geza@kzsdabas.hu> Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Tue Nov 29 09:20:55 CET 2011 on sn-devel-104
2011-11-27samba-tool: domain info - add basic exception handlingMatthias Dieter Wallnöfer1-2/+4
It is nicer to get an error message rather than a stacktrace on wrong IP addresses. Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-11-27samba-tool: add a domain info command to get basic infoMatthieu Patou1-1/+24
Signed-off-by: Matthias Dieter Wallnöfer <mdw@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-11-18s4-s3-upgrade: Add --verbose option to print extra detailsAmitay Isaacs1-2/+5
2011-11-18samba-tool: Fix the domain account policy max_pwd_age calculationAmitay Isaacs1-2/+8
Windows sets maxPwdAge to -0x8000000000000000 when maximum password age is set to 0 days.
2011-11-15samba-tool: Remove "domain machinepassword" commandGiampaolo Lauria1-28/+0
As per Andrew Bartlett's comment: "we should remove it. This was originally a script to support some interactions between samba3 and samba4, when they were in distinct build systems. We now can call between the two systems without difficulty at runtime, so this command has no value." Signed-off-by: Amitay Isaacs <amitay@gmail.com>
2011-11-13upgrade: use logger.warning.Jelmer Vernooij1-4/+4
2011-11-10samba-tool: Change internal argument name in domain machinepasswordGiampaolo Lauria1-5/+5
2011-11-10samba-tool: Fix domain machinepassword secret db searchGiampaolo Lauria1-4/+2
pair programmed with Jelmer Vernooij Add search to include secrets.ldb
2011-11-10samba-tool: Fix domain machinepassword name searchGiampaolo Lauria1-0/+2
Append '$' to name provided by user to search for a machine account when necessary
2011-11-03samba-tool: Fix short description and error msgs in domain levelGiampaolo Lauria1-5/+5
Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Thu Nov 3 16:53:16 CET 2011 on sn-devel-104
2011-11-03samba-tool: Fix --quiet option in domain samba3upgradeGiampaolo Lauria1-2/+2
--quiet option does not require an argument
2011-10-19s4-s3-upgrade rename samba-tool domain samba3upgrade --libdir to --dbdir for ↵Andrew Bartlett1-15/+15
clarity The things pointed at are not typically in a directory called lib, so avoid confusing our administrators. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Wed Oct 19 15:43:04 CEST 2011 on sn-devel-104
2011-10-18s4-s3-upgrade: Give a better clue when we cannot open secrets.tdbAndrew Bartlett1-1/+1
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-10-16s4: check that the xattr are supported in the folder where we want to provisionMatthieu Patou1-1/+4
By default we were checking this on the default folder for tempfile.NamedTemporaryFile (usualy /tmp) but this folder can be mounted on tmpfs (which didn't support xattr currently). Now we should check on the filesystem where the provision will be done.
2011-10-14samba-tool: Don't require full prog line to be in synopsis.Jelmer Vernooij1-6/+6
2011-10-14samba-tool: Determine long option from docstring.Jelmer Vernooij1-5/+6