summaryrefslogtreecommitdiffstats
path: root/source4/scripting
Commit message (Collapse)AuthorAgeFilesLines
* s4:samba-tool user command - always initialise the boolean arguments properlyMatthias Dieter Wallnöfer2011-11-081-3/+3
| | | | | | | | | It they haven't been specified. Reviewed-by: Jelmer Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Tue Nov 8 22:28:38 CET 2011 on sn-devel-104
* s4:samba-tool - other fix for Gémes Géza patch regarding parameter handlingMatthias Dieter Wallnöfer2011-11-081-2/+2
| | | | | | | The condition has not been specified correctly since we are expecting a boolean. Pointed out by Jelmer. Reviewed-by: Jelmer
* s4-provision: site is passed as an argument to setup_ad_dns()Amitay Isaacs2011-11-081-1/+0
| | | | | Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Tue Nov 8 06:07:46 CET 2011 on sn-devel-104
* s4-provision Remove options for LDAP backend to reduce user confusionAndrew Bartlett2011-11-083-20/+14
| | | | | | | | | | | | We do not support the LDAP backend any more, but keep the code in case someone comes up with an interesting use case that could leverage this in a very particular situation. In order to keep the code, we must test it, so we keep just this much of the support around. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Tue Nov 8 04:33:49 CET 2011 on sn-devel-104
* s4-s3-upgrade Add my copyrightAndrew Bartlett2011-11-081-0/+1
|
* s4-dnsserver: Test forward zones are not listed in reverse zone searchAmitay Isaacs2011-11-081-2/+15
| | | | | Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Tue Nov 8 01:26:43 CET 2011 on sn-devel-104
* s4:samba-tool - fix Gémes Géza patch regarding parameter handlingMatthias Dieter Wallnöfer2011-11-071-4/+5
| | | | | | | The new "random-password" parameter has not been evaluated correctly. Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Mon Nov 7 19:35:05 CET 2011 on sn-devel-104
* Add a --random-password option to user create command.Gémes Géza2011-11-071-4/+16
| | | | | Signed-Off-By: Jelmer Vernooij <jelmer@samba.org> Signed-off-by: Matthias Dieter Wallnöfer <mdw@samba.org>
* s4: samba-tool user --help documenation improvementsTheresa Halloran2011-11-072-7/+146
| | | | | | | Signed-off-by: Theresa Halloran <thallora@linux.vnet.ibm.com> Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Mon Nov 7 01:39:25 CET 2011 on sn-devel-104
* kcc: fixed program nameAndrew Tridgell2011-11-071-3/+3
| | | | kcccompute -> samba_kcc
* kcc: fixed tabs/spaces in kcc python implementationAndrew Tridgell2011-11-072-18/+18
| | | | as spotted by autobuild
* samba_kcc addtionDave Craft2011-11-073-1/+705
| | | | | | | | | | Scaffolding and initial implementations of portions of the KCC in python. This code currently properly computes the graph nodes for the intrasite topology as well as enumerating all steps for a full run of the KCC. Signed-off-by: Andrew Tridgell <tridge@samba.org>
* add python KCC utility classes and methodsDave Craft2011-11-071-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>
* Some formatting fixes, remove unused imports.Jelmer Vernooij2011-11-063-13/+4
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sun Nov 6 06:22:33 CET 2011 on sn-devel-104
* s4 provision/dns: Move DNS-related setup to sambadns moduleKai Blin2011-11-042-187/+194
| | | | | Autobuild-User: Kai Blin <kai@samba.org> Autobuild-Date: Fri Nov 4 09:15:54 CET 2011 on sn-devel-104
* s4 provision/dns: Move secretsdb_setup_dns to the AD DNS specific setupKai Blin2011-11-042-32/+63
|
* samba-tool: Fix short description and error msgs in domain levelGiampaolo Lauria2011-11-031-5/+5
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Thu Nov 3 16:53:16 CET 2011 on sn-devel-104
* samba-tool: Fix --quiet option in domain samba3upgradeGiampaolo Lauria2011-11-031-2/+2
| | | | --quiet option does not require an argument
* samba-tool: Improve "delegation" command error handlingGiampaolo Lauria2011-11-032-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
* samba-tool: Improve "delegation" command error messageGiampaolo Lauria2011-11-031-2/+2
| | | | Write a more specific error msg when the on|off arg is invalid
* samba-tool: Improve "delegation" command error handlingGiampaolo Lauria2011-11-031-21/+27
| | | | | Display a more meaningful error msg when user account not found Assert when returned number of entries is not 0 or 1
* samba-tool: Fix "delegation show" command synopsisGiampaolo Lauria2011-11-031-1/+1
| | | | Removed "show" from synopsis as it is no longer necessary
* s4-sites: Document, fix under optimal coding, use exceptionsMatthieu Patou2011-11-022-22/+86
| | | | | Autobuild-User: Matthieu Patou <mat@samba.org> Autobuild-Date: Wed Nov 2 22:35:00 CET 2011 on sn-devel-104
* samba.netcmd: Pass in outf/errf.Jelmer Vernooij2011-11-022-6/+5
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Wed Nov 2 20:09:40 CET 2011 on sn-devel-104
* s4-python: samba.provision: Require schema to be passed in - code path which ↵Jelmer Vernooij2011-11-021-5/+1
| | | | handles schema not being specified is broken anyway.
* samba.common: Fix formatting of docstring (trips up pydoctor).Jelmer Vernooij2011-11-021-3/+4
|
* samba-tool: add subcommand for sites manipulationMatthieu Patou2011-11-022-0/+98
| | | | | Autobuild-User: Matthieu Patou <mat@samba.org> Autobuild-Date: Wed Nov 2 15:14:32 CET 2011 on sn-devel-104
* s4-python: add function to manipulate sites in pythonMatthieu Patou2011-11-021-0/+63
|
* s4-dnsserver: Check the raised exception with assertRaisesAmitay Isaacs2011-11-021-13/+11
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* samba-tool: Improve the description of dns subcommands.Amitay Isaacs2011-11-021-5/+15
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* samba-tool: Enable comparison of DNS naming contexts in ldapcmpAmitay Isaacs2011-11-021-3/+8
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4-join: Send ReplicaUpdateRefs at the end of the joinMatthieu Patou2011-11-011-1/+19
|
* s4-domain-join: do not add DFSR entries when joining, this should be done in ↵Matthieu Patou2011-11-011-9/+0
| | | | the code handling DFSR replication
* Simplify handling of user add command.Jelmer Vernooij2011-11-011-6/+10
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Tue Nov 1 14:25:39 CET 2011 on sn-devel-104
* 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