summaryrefslogtreecommitdiffstats
path: root/source4/scripting
Commit message (Collapse)AuthorAgeFilesLines
* s4: samba-tool subcommand rename - change samba-tool user add to samba-tool ↵Theresa Halloran2011-10-231-2/+9
| | | | | | | user create Signed-off-by: Theresa Halloran <thallora@linux.vnet.ibm.com> Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* s4-selftest: Add tests for RPC dnsserverAmitay Isaacs2011-10-201-0/+181
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* samba-tool: Added dns command for DNS managementAmitay Isaacs2011-10-202-0/+861
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4-provision: Provision DNS records with correct rankAmitay Isaacs2011-10-201-18/+23
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4-test: added test suite for common.py codeAndrew Tridgell2011-10-201-0/+42
| | | | | | | | | this tests the dsdb_Dn() class Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com> Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Thu Oct 20 05:51:28 CEST 2011 on sn-devel-104
* s4-dsdb: moved dsdb_Dn() into common.pyAndrew Tridgell2011-10-202-26/+43
| | | | | | this gives a method for dealing with binary DNs from python Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
* subunitrun: give more useful helpAndrew Tridgell2011-10-201-2/+25
| | | | | | give some examples and more useful description for subunitrun command Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
* s4-s3-upgrade rename samba-tool domain samba3upgrade --libdir to --dbdir for ↵Andrew Bartlett2011-10-192-16/+16
| | | | | | | | | | | | 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
* s4-s3-upgrade fix format string for secrets.tdb exceptionAndrew Bartlett2011-10-191-1/+1
|
* s4-s3-upgrade Fix samba3upgrade code to cope with a missing wins.datAndrew Bartlett2011-10-191-1/+10
|
* samba.getopt: Add some basic tests.Jelmer Vernooij2011-10-191-0/+57
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Wed Oct 19 05:04:33 CEST 2011 on sn-devel-104
* samba.getopt: Keep exception message when setting a lp option fails.Jelmer Vernooij2011-10-191-4/+5
|
* samba-tool: Improve getopt.py error handlingGiampaolo Lauria2011-10-191-4/+5
| | | | | | Modified code to handle -k and --kerberos options to: 1. Throw the correct exception 2. On error, display the correct user's specified option
* samba-tool: Improve getopt.py error handlingGiampaolo Lauria2011-10-191-1/+5
| | | | Throw an exception when the --option value is invalid
* samba-tool: Improve getopt.py error handlingGiampaolo Lauria2011-10-191-2/+1
| | | | Throw an exception when --option value is not in the form "a=b"
* samba-tool: Improve getopt.py error handlingGiampaolo Lauria2011-10-191-0/+3
| | | | Raise exception when -d or --debuglevel value is <0
* s4-s3-upgrade: Give a better clue when we cannot open secrets.tdbAndrew Bartlett2011-10-182-2/+5
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4 provision: DNS backend should be set by callerKai Blin2011-10-174-8/+13
| | | | | Autobuild-User: Kai Blin <kai@samba.org> Autobuild-Date: Mon Oct 17 09:51:12 CEST 2011 on sn-devel-104
* s4 provision/dns: Clean up os level handlingKai Blin2011-10-171-10/+12
|
* s4 provision/dns: Clean up backend handlingKai Blin2011-10-171-6/+13
|
* s4 provision: Reword opinionated dns backend help text, add NONE backendKai Blin2011-10-171-2/+2
|
* s4 provision: Rename bind9 flatfile backend to BIND9_FLATFILEKai Blin2011-10-172-6/+6
|
* s4: check that the xattr are supported in the folder where we want to provisionMatthieu Patou2011-10-161-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.
* samba-tool: Add test to make sure all commands have a short description set.Jelmer Vernooij2011-10-141-0/+11
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Fri Oct 14 01:53:45 CEST 2011 on sn-devel-104
* samba-tool: Add test to make sure all commands have a synopsis set.Jelmer Vernooij2011-10-143-3/+26
|
* samba-tool: Move main command implementation to samba.netcmd.main, so it is ↵Jelmer Vernooij2011-10-143-61/+79
| | | | accessible by the testsuite.
* samba-tool: Don't require full prog line to be in synopsis.Jelmer Vernooij2011-10-1417-98/+80
|
* samba.netcmd: Reintroduce Command.name.Jelmer Vernooij2011-10-142-0/+13
|
* samba-tool: Determine long option from docstring.Jelmer Vernooij2011-10-143-17/+25
|
* creds: Remove unnecessary calls to credopts.get_credentials.Jelmer Vernooij2011-10-141-2/+0
|
* python: Remove extra newlines.Jelmer Vernooij2011-10-141-3/+0
|
* s4-messaging: Pass the loadparm context, not just the messaging pathAndrew Bartlett2011-10-131-1/+0
| | | | | | This will allow the TDB layer to get at the lp_ctx for tdb options. Andrew Bartlett
* samba-tool: Use self.outf in a few more places.Jelmer Vernooij2011-10-1313-88/+104
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Thu Oct 13 05:06:52 CEST 2011 on sn-devel-104
* samba-tool delegation: Use self.outf, simplify some code.Jelmer Vernooij2011-10-131-14/+8
|
* samba.getopt: Refactor parsing of --kerberos argument into separate function.Jelmer Vernooij2011-10-131-13/+16
|
* samba-tools/testparm: Add really basic unit test, demonstrating how to write ↵Jelmer Vernooij2011-10-131-0/+29
| | | | | | | unit tests for samba-tool in Python. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Thu Oct 13 01:56:20 CEST 2011 on sn-devel-104
* netcmd: Add Command.get_logger() method.Jelmer Vernooij2011-10-133-5/+8
|
* netcmd: Add errf stream to command instances.Jelmer Vernooij2011-10-132-8/+9
|
* samba-tool/testparm: Fix traceback when checking client name/ip against ↵Jelmer Vernooij2011-10-131-2/+2
| | | | hosts allowed.
* samba-tool/testparm: Fix handling of command-line options.Jelmer Vernooij2011-10-131-26/+29
|
* samba.upgrade: Use list comprehension.Jelmer Vernooij2011-10-121-4/+4
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Wed Oct 12 22:44:40 CEST 2011 on sn-devel-104
* samba.getopt: Allow --kerberos=auto, and fix exception name if an unknownJelmer Vernooij2011-10-121-1/+4
| | | | | | | value is specified. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Wed Oct 12 02:12:21 CEST 2011 on sn-devel-104
* s4-s3-upgrade: Allow import (just without a uid mapping) where getpwnam failsAndrew Bartlett2011-10-111-1/+1
| | | | | | This allows the tests to pass on systems without a jelmer user :-) Andrew Bartlett
* netcmd/domain: Remove unused imports.Jelmer Vernooij2011-10-081-2/+2
|
* netcmd: Avoid catching all exceptions, avoid using ';' at the end of lines.Jelmer Vernooij2011-10-081-9/+8
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Oct 8 15:46:46 CEST 2011 on sn-devel-104
* upgrade: Avoid catching all exceptions, just catch the ones we care about.Jelmer Vernooij2011-10-081-11/+9
|
* s4:findprovisionusnranges - the default python path is detected over "env"Matthias Dieter Wallnöfer2011-10-081-1/+1
| | | | | | | Reviewed-by: Jelmer Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Sat Oct 8 13:06:20 CEST 2011 on sn-devel-104
* s4:dbchecker: make use of local_oid controls for dsdb.DSDB_CONTROL_DBCHECKStefan Metzmacher2011-10-071-1/+1
| | | | metze
* samba-tool: add support for fixing broken backlinks in dbcheckAndrew Tridgell2011-10-061-20/+32
| | | | | | | | | this allows dangling backlinks to be removed Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Thu Oct 6 07:08:35 CEST 2011 on sn-devel-104
* s4-subdomain: create trust record with forest root DCAndrew Tridgell2011-10-041-7/+33
| | | | | | | | | | when we create a sub-subdomain we need to use the forest naming master to setup the partition changes for the new subdomain. We also need to setup the trust with the forest root, as that allows us to create the needed _msdcs DNS entries in the forest Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Tue Oct 4 07:40:59 CEST 2011 on sn-devel-104