summaryrefslogtreecommitdiff
path: root/source4/scripting
AgeCommit message (Collapse)AuthorFilesLines
2011-11-07add python KCC utility classes and methodsDave Craft1-0/+890
New file source4/scripting/python/samba/kcc_utils.py contains classes and methods for: DirectoryServiceAgent NTDSConnection GraphNode NamingContext NCReplica These are consumed by a new samba_kcc python script for KCC topology computation Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-11-06Some formatting fixes, remove unused imports.Jelmer Vernooij3-13/+4
Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sun Nov 6 06:22:33 CET 2011 on sn-devel-104
2011-11-04s4 provision/dns: Move DNS-related setup to sambadns moduleKai Blin2-187/+194
Autobuild-User: Kai Blin <kai@samba.org> Autobuild-Date: Fri Nov 4 09:15:54 CET 2011 on sn-devel-104
2011-11-04s4 provision/dns: Move secretsdb_setup_dns to the AD DNS specific setupKai Blin2-32/+63
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-11-03samba-tool: Improve "delegation" command error handlingGiampaolo Lauria2-6/+12
Change samdb toggle_userAccountFlags fcn to display more meaningful error messages Add flags string param to toggle_userAccountFlags Change call to toggle_userAccountFlags in delegation command to pass the flag name to be displayed in case of errors
2011-11-03samba-tool: Improve "delegation" command error messageGiampaolo Lauria1-2/+2
Write a more specific error msg when the on|off arg is invalid
2011-11-03samba-tool: Improve "delegation" command error handlingGiampaolo Lauria1-21/+27
Display a more meaningful error msg when user account not found Assert when returned number of entries is not 0 or 1
2011-11-03samba-tool: Fix "delegation show" command synopsisGiampaolo Lauria1-1/+1
Removed "show" from synopsis as it is no longer necessary
2011-11-02s4-sites: Document, fix under optimal coding, use exceptionsMatthieu Patou2-22/+86
Autobuild-User: Matthieu Patou <mat@samba.org> Autobuild-Date: Wed Nov 2 22:35:00 CET 2011 on sn-devel-104
2011-11-02samba.netcmd: Pass in outf/errf.Jelmer Vernooij2-6/+5
Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Wed Nov 2 20:09:40 CET 2011 on sn-devel-104
2011-11-02s4-python: samba.provision: Require schema to be passed in - code path which ↵Jelmer Vernooij1-5/+1
handles schema not being specified is broken anyway.
2011-11-02samba.common: Fix formatting of docstring (trips up pydoctor).Jelmer Vernooij1-3/+4
2011-11-02samba-tool: add subcommand for sites manipulationMatthieu Patou2-0/+98
Autobuild-User: Matthieu Patou <mat@samba.org> Autobuild-Date: Wed Nov 2 15:14:32 CET 2011 on sn-devel-104
2011-11-02s4-python: add function to manipulate sites in pythonMatthieu Patou1-0/+63
2011-11-02s4-dnsserver: Check the raised exception with assertRaisesAmitay Isaacs1-13/+11
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-11-02samba-tool: Improve the description of dns subcommands.Amitay Isaacs1-5/+15
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-11-02samba-tool: Enable comparison of DNS naming contexts in ldapcmpAmitay Isaacs1-3/+8
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-11-01s4-join: Send ReplicaUpdateRefs at the end of the joinMatthieu Patou1-1/+19
2011-11-01s4-domain-join: do not add DFSR entries when joining, this should be done in ↵Matthieu Patou1-9/+0
the code handling DFSR replication
2011-11-01Simplify handling of user add command.Jelmer Vernooij1-6/+10
Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Tue Nov 1 14:25:39 CET 2011 on sn-devel-104
2011-10-23s4: samba-tool subcommand rename - change samba-tool user add to samba-tool ↵Theresa Halloran1-2/+9
user create Signed-off-by: Theresa Halloran <thallora@linux.vnet.ibm.com> Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2011-10-20s4-selftest: Add tests for RPC dnsserverAmitay Isaacs1-0/+181
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-10-20samba-tool: Added dns command for DNS managementAmitay Isaacs2-0/+861
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-10-20s4-provision: Provision DNS records with correct rankAmitay Isaacs1-18/+23
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-10-20s4-test: added test suite for common.py codeAndrew Tridgell1-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
2011-10-20s4-dsdb: moved dsdb_Dn() into common.pyAndrew Tridgell2-26/+43
this gives a method for dealing with binary DNs from python Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
2011-10-20subunitrun: give more useful helpAndrew Tridgell1-2/+25
give some examples and more useful description for subunitrun command Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
2011-10-19s4-s3-upgrade rename samba-tool domain samba3upgrade --libdir to --dbdir for ↵Andrew Bartlett2-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
2011-10-19s4-s3-upgrade fix format string for secrets.tdb exceptionAndrew Bartlett1-1/+1
2011-10-19s4-s3-upgrade Fix samba3upgrade code to cope with a missing wins.datAndrew Bartlett1-1/+10
2011-10-19samba.getopt: Add some basic tests.Jelmer Vernooij1-0/+57
Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Wed Oct 19 05:04:33 CEST 2011 on sn-devel-104
2011-10-19samba.getopt: Keep exception message when setting a lp option fails.Jelmer Vernooij1-4/+5
2011-10-19samba-tool: Improve getopt.py error handlingGiampaolo Lauria1-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
2011-10-19samba-tool: Improve getopt.py error handlingGiampaolo Lauria1-1/+5
Throw an exception when the --option value is invalid
2011-10-19samba-tool: Improve getopt.py error handlingGiampaolo Lauria1-2/+1
Throw an exception when --option value is not in the form "a=b"
2011-10-19samba-tool: Improve getopt.py error handlingGiampaolo Lauria1-0/+3
Raise exception when -d or --debuglevel value is <0
2011-10-18s4-s3-upgrade: Give a better clue when we cannot open secrets.tdbAndrew Bartlett2-2/+5
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-10-17s4 provision: DNS backend should be set by callerKai Blin4-8/+13
Autobuild-User: Kai Blin <kai@samba.org> Autobuild-Date: Mon Oct 17 09:51:12 CEST 2011 on sn-devel-104
2011-10-17s4 provision/dns: Clean up os level handlingKai Blin1-10/+12
2011-10-17s4 provision/dns: Clean up backend handlingKai Blin1-6/+13
2011-10-17s4 provision: Reword opinionated dns backend help text, add NONE backendKai Blin1-2/+2
2011-10-17s4 provision: Rename bind9 flatfile backend to BIND9_FLATFILEKai Blin2-6/+6
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: Add test to make sure all commands have a short description set.Jelmer Vernooij1-0/+11
Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Fri Oct 14 01:53:45 CEST 2011 on sn-devel-104
2011-10-14samba-tool: Add test to make sure all commands have a synopsis set.Jelmer Vernooij3-3/+26
2011-10-14samba-tool: Move main command implementation to samba.netcmd.main, so it is ↵Jelmer Vernooij3-61/+79
accessible by the testsuite.
2011-10-14samba-tool: Don't require full prog line to be in synopsis.Jelmer Vernooij17-98/+80
2011-10-14samba.netcmd: Reintroduce Command.name.Jelmer Vernooij2-0/+13