summaryrefslogtreecommitdiffstats
path: root/source4/scripting
Commit message (Collapse)AuthorAgeFilesLines
* selftest: Don't specify SELFTEST_TARGET as an env variableAndrew Bartlett2011-04-191-1/+0
| | | | | | | It is much more reliable to specify it as a direct parameter, and this is needed for the combined 'make test'. Andrew Bartlett
* samba-tool: fix machinepw command so that we use the full path to the secret ↵Matthieu Patou2011-04-171-3/+6
| | | | | | | database and raise an error if secret can't be found Autobuild-User: Matthieu Patou <mat@samba.org> Autobuild-Date: Sun Apr 17 13:12:27 CEST 2011 on sn-devel-104
* selftest: Remove duplication between BUILDIR and BINDIRAndrew Bartlett2011-04-161-1/+1
| | | | | | Just have BINDIR, and have it default to ./bin Andrew Bartlett
* s4-samba_dnsupate Fix syntax errorAndrew Bartlett2011-04-071-2/+1
| | | | | | | | | | This particular sub-part of the script isn't tested in 'make test' due to it making real changes to DNS. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Thu Apr 7 08:51:11 CEST 2011 on sn-devel-104
* samba_dnsupdate: Don't use subprocess.check_call, it isn't in python 2.4Andrew Bartlett2011-04-071-1/+8
| | | | RHEL5 and clones use python 2.5
* s4-test: fixed a problem with very verbose NDR debugAndrew Tridgell2011-04-063-4/+4
| | | | | | | | lp.get("log level") returns a string, not an integer. It needs to be cast to an integer for comparison with a number Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Wed Apr 6 08:58:05 CEST 2011 on sn-devel-104
* s4 samba-tool: Implement "testparm" commandKai Blin2011-04-052-0/+208
| | | | | | | | This is a port of the existing "testparm" python script to a samba-tool command. Autobuild-User: Kai Blin <kai@samba.org> Autobuild-Date: Tue Apr 5 07:49:13 CEST 2011 on sn-devel-104
* s4-samba-tool: give a bit better error on user delete failureAndrew Tridgell2011-04-041-1/+5
|
* Avoid uppercasing server role in error message.Jelmer Vernooij2011-04-031-1/+1
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sun Apr 3 20:01:48 CEST 2011 on sn-devel-104
* s4-fsmo: say which role is being transferredAndrew Tridgell2011-03-291-4/+4
| | | | this is particularly useful for "samba-tool fsmo transfer --role=all"
* s4-fsmo: samba-tool fsmo transfer now gets full error codeAndrew Tridgell2011-03-291-2/+2
| | | | | | We now wait for the transfer to succeed or fail Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-fsmo: nicer error messages on failed FSMO transfersAndrew Tridgell2011-03-291-5/+12
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-drs: default hostname in samba-tool drs commandAndrew Tridgell2011-03-291-2/+2
| | | | | | default to our hostname Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-fsmo: samba-tool fsmo takes a URL, not a hostnameAndrew Tridgell2011-03-291-3/+3
| | | | | | better to call the option --url Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* upgradeprovision: Fix typoMatthieu Patou2011-03-201-1/+1
|
* python: use os.environ[] instead of os.putenv()Andrew Tridgell2011-02-222-6/+6
| | | | | | | using os.putenv() causes too much confusion, as it doesn't update os.getenv() Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4:scripting/python/modules.[ch] - explicitly say that "py_update_path" ↵Matthias Dieter Wallnöfer2011-02-212-2/+2
| | | | | | | | | takes no argument This quiets some build warnings. Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Mon Feb 21 14:42:00 CET 2011 on sn-devel-104
* s4-unittests: replace assertEquals(res, []) by assertEquals(len(res), 0)Matthieu Patou2011-02-211-1/+1
|
* s4/samba.tests: Raise BlackboxProcessError exception in case check_output ↵Kamen Mazdrashki2011-02-201-2/+2
| | | | | | | | | method fails This way the caller gets the chance to receive STDOUT and STDERR for a failed process. We may use this info to check if a process has failed properly, e.g. with expected output
* s4/samba.tests: Extend CalledProcessError class to store STDOUT and STDERR ↵Kamen Mazdrashki2011-02-201-0/+13
| | | | for a failed rocess call
* s4:scripting/python/modules.c - remove a really unnecessary variableMatthias Dieter Wallnöfer2011-02-171-1/+0
| | | | | Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Thu Feb 17 16:01:44 CET 2011 on sn-devel-104
* s4:ldapcmp: cope with range retrivals of multivalued attributesStefan Metzmacher2011-02-141-1/+72
| | | | | | | | | | | | | | | A Windows Server returns a 'member;range=0-1499' attribute with the first 1500 values of the 'member' attribute. The client can do a BASE search on the given object and ask for the 'member;range=1500-*' attribute. It needs to loop until the high part of the returned range is '*'. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Feb 14 16:26:46 CET 2011 on sn-devel-104
* s4/upgradeprovision: Fix help for --debugguess.Michael Wood2011-02-131-1/+1
| | | | | | | Signed-off-by: Matthieu Patou <mat@matws.net> Autobuild-User: Matthieu Patou <mat@samba.org> Autobuild-Date: Sun Feb 13 16:38:13 CET 2011 on sn-devel-104
* s4/upgradeprovision: Typo and better word.Michael Wood2011-02-131-2/+2
| | | | Signed-off-by: Matthieu Patou <mat@matws.net>
* s4: samba_backup: Fix typos.Michael Wood2011-02-131-3/+3
| | | | Signed-off-by: Matthieu Patou <mat@matws.net>
* s4-tools: Added --sddl option, which allows the user to add an ACE to an ↵Nadezhda Ivanova2011-02-101-4/+8
| | | | | | | | | object's security descriptor in SDDL format Useful for testing purposes. Autobuild-User: Nadezhda Ivanova <nivanova@samba.org> Autobuild-Date: Thu Feb 10 15:28:04 CET 2011 on sn-devel-104
* s4/tests: Implement a blackbox test for 'samba-tool drs' commandKamen Mazdrashki2011-02-091-0/+100
| | | | | Autobuild-User: Kamen Mazdrashki <kamenim@samba.org> Autobuild-Date: Wed Feb 9 11:45:30 CET 2011 on sn-devel-104
* s4/tests: Move command line processing into separate method to be reusedKamen Mazdrashki2011-02-091-6/+6
|
* s4/tests: Implement BlackboxTestCase.check_output() methodKamen Mazdrashki2011-02-091-0/+11
| | | | I am going to need this to check if output is OK (kind of)
* s4/samba-tool/drs: Make use of Command.message() method instead of using 'print'Kamen Mazdrashki2011-02-091-36/+37
|
* s4/samba-tool/drs: Move get_dsServiceName function at module level to be re-usedKamen Mazdrashki2011-02-091-12/+8
|
* s4/samba-tool: 'drs options' command implementationKamen Mazdrashki2011-02-091-0/+71
| | | | Current implementation handle only one flag change per call
* s4-provision: added setup_path() import in two more placesAndrew Tridgell2011-02-072-1/+3
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-python: get ordering right on python pathsAndrew Tridgell2011-02-071-3/+5
| | | | | | | | | | we need to have PYTHONARCHDIR first, as that is where we currently install. That will minimise problems with upgrades from old installs. We also don't need to add the path twice if PYTHONDIR is the same as PYTHONARCHDIR (as happens on debian based systems) Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-python Don't force "bin" into the python sys.pathAndrew Bartlett2011-02-072-20/+2
| | | | | | | | | This patch uses the fact that dyn_PYTHONDIR and dyn_PYTHONARCHDIR is now set properly at all times, incluidng for installed and build-directory binaries. So we don't need to make assumptions about bin being magic any more. Andrew Bartlett
* s4-provision Remove setup_path, setup_dir and find_setup_dirAndrew Bartlett2011-02-079-166/+114
| | | | | | | | | | | | | | We now have a reliable way to know the current location of the templates: dyn_SETUPDIR, which is updated for both the in-build and installed binaries. This replaces the function arguments and the distributed resolution of the setup directory with one 'global' function (imported as required). This also removes the ability to specify an alternate setup directory on the command line, as this was rarely if ever used and never tested. Andrew Bartlett
* s4-upgradeprovision: renames need a relax to avoid subtree_rename checksAndrew Tridgell2011-02-071-2/+3
|
* s4-provision: removed spurious os.chdir() from upgradehelpers.pyAndrew Tridgell2011-02-071-1/+0
| | | | | | this breaks make test with a top level build, and is not needed Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-test: fixed ndrdump test for top level buildAndrew Tridgell2011-02-071-1/+6
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-test: fixed setup/ assumption for top level buildAndrew Tridgell2011-02-073-6/+13
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-loadparm: removed "setup directory" optionAndrew Tridgell2011-02-071-8/+0
| | | | | | | the correct setup directory is known at both build time and install time using dyn_SETUPDIR, so we no longer have any need to override it Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-provision: cope with top level directory for provisionAndrew Tridgell2011-02-072-16/+18
| | | | | | | to allow for top level 'make test' we need to cope with two in-tree directory layouts Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4/samba-tool: Add --sync-forced flag to 'drs replicate' commandKamen Mazdrashki2011-02-021-1/+4
| | | | | | | | We are going to need this to trigger replication when inbound replication is disabled for a given DC Autobuild-User: Kamen Mazdrashki <kamenim@samba.org> Autobuild-Date: Wed Feb 2 09:03:22 CET 2011 on sn-devel-104
* s4-waf Don't install any Samba packages into PYTHONDIRAndrew Bartlett2011-02-021-1/+1
| | | | | | | This causes the parts of Samba installed into PYTHONARCHDIR to then be missed in mixed python/C module namespaces. Andrew Bartlett
* s4-python Remove manipuation of python path from samba moduleAndrew Bartlett2011-02-021-2/+1
| | | | | | | | This manipulation should be done by top level scripts, otherwise we won't find samba in the first place (and these can be munged correctly for the install). Andrew Bartlett
* s4-python Ensure we add the Samba python path first.Andrew Bartlett2011-02-021-1/+1
| | | | | | | This exact form of the construction is important, and we match on it in the installation scripts. Andrew Bartlett
* s4-python Remove unused missing.py (used by old build system)Andrew Bartlett2011-02-021-17/+0
|
* pygensec: remove special case handling for None for buffersAndrew Tridgell2011-01-191-1/+1
| | | | | | always returning a buffer makes life easier for callers Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-gensec Extend python bindings for GENSEC and the associated testAndrew Bartlett2011-01-181-6/+51
| | | | | | | | | | This now tests a real GENSEC exchange, including wrap and unwrap, using GSSAPI. Therefore, it now needs to access a KDC. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Tue Jan 18 11:41:26 CET 2011 on sn-devel-104
* s4-provision: Fixed owner/group for hard-coded Sites descriptor.Nadezhda Ivanova2011-01-171-3/+1
| | | | | | | | We must not specify explicitly owner and group. As there is a difference between WIN_2003 and WIN_2008, we should let descriptor module compute the correct default ones. Also removed inherited ACEs, they are ignored during SD creation anyway. Autobuild-User: Nadezhda Ivanova <nivanova@samba.org> Autobuild-Date: Mon Jan 17 18:23:24 CET 2011 on sn-devel-104