summaryrefslogtreecommitdiff
path: root/source4/scripting
AgeCommit message (Collapse)AuthorFilesLines
2011-07-28samba-tool: Replace C version of samba-tool with python versionAmitay Isaacs3-4/+4
C version of samba-tool is now called samba-tool-c, which will be removed as soon as all the samba-tool commands are ported to python. Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-07-28samba-tool: Added python version of samba-toolAmitay Isaacs1-0/+70
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-07-28samba-tool: Reimplement GPO functions in pythonAmitay Isaacs1-11/+412
Implementation of subcommands - show, getlink, setlink, dellink, getinheritance, setinheritance Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-07-28samba-tool: Removed newuserGiampaolo Lauria2-94/+0
Removed newuser as its functionality has been moved to "user add" Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-07-28samba-tool: Changed "user add" implementationGiampaolo Lauria1-13/+60
Changed "user add" to use SamDB instead of Net Also, added the set of Options available in newuser Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-07-28samba-tool: add -H or --URL where necessaryGiampaolo Lauria7-19/+32
To improve consistency, I've made sure all the commands take either a -H or --URL when specifying a URL Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-07-26s4-upgradeprovision: Detect recent provision in a more reliable wayMatthieu Patou1-1/+12
2011-07-26s4:samba-tool: ldapcmp needs CredentialsOptionsDoubleStefan Metzmacher1-0/+6
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Jul 26 17:09:32 CEST 2011 on sn-devel-104
2011-07-23scripting/bin: Some formatting fixes.Jelmer Vernooij2-4/+4
2011-07-21s4-param: use "state directory" and "cache directory" optionsBjörn Baumbach1-5/+5
instead of "state dir" and "cache dir" in order be compatible with the source3 code. Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-07-21samba-tool: make sure we exit with an error on a bad commandAndrew Tridgell1-1/+2
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Thu Jul 21 04:58:01 CEST 2011 on sn-devel-104
2011-07-21samba-tool: fixed some more calls to samba_tool join to be 'domain join'Andrew Tridgell1-1/+1
2011-07-21dbcheck: use string DN in delete when fixing broken strings DNsAndrew Tridgell1-1/+1
this prevents the extended_dn_in module from 'fixing' the DN for us Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-07-21s4-provision: run dbcheck on a minimal set of objects in provisionAndrew Tridgell1-4/+8
this speeds up the dbcheck in provision to fix only the objects that we know will need fixing Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-07-21samba_backup: check that directory really existsMatthieu Patou1-1/+11
2011-07-21s4-dsdb: change the samba3sam test to add the show_deleted moduleAndrew Tridgell1-1/+1
this is needed now that the samldb module adds the show deleted control Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-07-21samba-tool: nicer error in passwordsettings with no settingsAndrew Tridgell1-0/+2
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-07-21samba-tool: testparm doesn't take any credentialsAndrew Tridgell1-0/+5
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-07-21samba-tool: use 'exportkeytab' instead of 'dumpkeys'Andrew Tridgell1-3/+3
a 'keytab' is a particular format known to administrators, whereas 'keys' is a bit too vague Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-07-21samba-tool: Fix __doc_ in base classesGiampaolo Lauria1-3/+3
Changed prog to samba-tool as prog is only meaningful in Parser Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-07-21samba-tool: removed synopsis code in base classGiampaolo Lauria1-8/+2
As it is not always possible to determine the usage of a command solely based on the list of required and optional args, it is best to have the subclasses always define it, rather than displaying an incorrect usage statement. Currently, all commands are subclassing the synopsis. Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-07-21samba-tool: Fixed bugs to determine min and max # of allowed argumentsGiampaolo Lauria1-7/+14
Fixed the bugs in the code to determine both the min and the max # of allowed arguments Changed the argument suffix convention from "*" to "+" to represent one or more arguments as: 1. It follows the Regular expression convention ("*" means 0 or more) 2. It is what was missing in terms of functionality NB Currently, no command is using the "*/+", but it is a good thing to have to help out the validation of the args if/when in the future we have such need Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-07-21samba-tool: Improved --help functionalityGiampaolo Lauria1-2/+6
Added a new --help msg Return an error when no subcommand is specified Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-07-21samba-tool: fixed __doc__ in base classesGiampaolo Lauria1-3/+3
Replaced the "net" word with %prog in all instances Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-07-21samba-tool: Fix error handling in SuperCommand classGiampaolo Lauria1-2/+11
Created show_command_error method to handle errors in SuperCommand Removed statement in SuperCommand to raise exception Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-07-21samba-tool: improved Option list for all user commandsGiampaolo Lauria1-10/+7
Added metavar values for -H and added some default values for other options Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-07-21samba-tool: added error handling for the user commandGiampaolo Lauria1-10/+21
Caught exception whenever possible, added new check for newpassword to make sure it contains some chars Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-07-21samba-tool: fixed drs commands synopsisGiampaolo Lauria1-5/+5
Added [options] as needed Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-07-21samba-tool: fixed synopsis on user commandsGiampaolo Lauria1-1/+1
Fixed all synopsis to contain [options], filter, and username Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-07-21samba-tool: fixed synopsis on all "user" commandsGiampaolo Lauria1-4/+8
Added [options] where needed, fixed others where filter or username was needed, renamed name to username Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-07-21samba-tool: moved takes_optiongroups definition to Command base classGiampaolo Lauria19-240/+23
The option groups should be defined at the Command base class level as they are in common across all samba-tool commands. Major move advantages: 1. more OOP approach 2. enforcing consistency across commands 3. avoiding the need of declaring for every new command Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-07-21samba-tool: removed the assignment to parser.progGiampaolo Lauria1-1/+0
The prog should only be set if we want it to be different than the name of the program that executed it. I think that for better portability we should not set it and let it default to samba-tool. Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-07-21samba-tool: fixed prog name in samba-toolGiampaolo Lauria1-1/+1
Changed the prog name from net to samba-tool so that the usage statement is now correct Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-07-21samba-tool: update vampire.py messageGiampaolo Lauria1-1/+1
The update was necessary to reflect the move from join to domain join as part of the object-action work Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-07-21samba-tool: removed join as it has been replaced by domain joinGiampaolo Lauria2-80/+0
This is part of the samba-tool work to fit the object-action model Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-07-21samba-tool: moved join to domain joinGiampaolo Lauria1-1/+57
This is part of the samba-tool work to fit the object-action model Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-07-21samba-tool: removed export as it has been moved to domain dumpkeysGiampaolo Lauria2-58/+0
The functionality of export has been moved to domain dumpkeys to fit the object-action model Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-07-21samba-tool: moved export to domain dumpkeysGiampaolo Lauria1-0/+23
This is part of the samba-tool work to fit the object-action model Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-07-21samba-tool: removed domainlevel as it has been moved to domain levelGiampaolo Lauria2-249/+0
The functionality of domainlevel has been moved the "domain level" to fit the object-action model Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-07-21samba-tool: moved domainlevel to domain levelGiampaolo Lauria1-0/+201
This is part of the samba-tool work to fit the object-action model Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-07-21samba-tool: removed machinepw as it has been moved to domain machinepasswordGiampaolo Lauria2-58/+0
The functionality of machinepwd has been moved to "domain machinepassword" to fit the object-action model Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-07-21samba-tool: moved machinepw to domain machinepasswordGiampaolo Lauria1-1/+37
This is part of the samba-tool work to fit the object-action model Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-07-21samba-tool: removed pwsettingsGiampaolo Lauria1-197/+0
pwsettings functionality has been moved to user passwordsettings to fit the object-action model Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-07-21samba-tool: created domain object, moved pwsettings to user passwordsettingsGiampaolo Lauria2-2/+214
This is part of the samba-tool work to fit the object-action model Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-07-21samba-tool: update test suite for add setpasswordGiampaolo Lauria1-2/+0
The test suite needs to change from setpassword to "user setpassword" to reflect the new cmd syntax Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-07-21samba-tool: removed setpassword.pyGiampaolo Lauria1-80/+0
The functionality in setppasword has now been moved to "user setpassword" to fit the object-action model Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-07-21samba-tool: added setpassword to userGiampaolo Lauria1-2/+58
This is part of the samba-tool work to fit the object-action model Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-07-21samba-tool: fix summary of the fsmo command to be clearerGiampaolo Lauria1-1/+1
fsmo command is for general FSMO management Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-07-13dbcheck: use samdb_schema for getting the backlinkAndrew Tridgell1-1/+1
this is not available on an ldap samdb Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-07-13ldb: use base searches for @ special DNsAndrew Tridgell4-21/+20
subtree searches on these DNs don't work any more Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>