summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* pyldb: use dn.is_child_of() instead of dn.compare_base()Andrew Tridgell2011-07-212-9/+10
| | | | | | | | the compare_base() C API doesn't really fit well in python, as it returns 0 for true. Better to have a boolean function for the python interface. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* samba_backup: check that directory really existsMatthieu Patou2011-07-211-1/+11
|
* tests: Add alpha13 dumped provisionMatthieu Patou2011-07-2123-0/+79033
|
* s4-dsdb: Use controls provided during the request while searching for object ↵Matthieu Patou2011-07-211-1/+13
| | | | | | | | | | to delete If the parent request specify the show_deleted control we must use it in order to be able to see the deleted objects. Also we just allow to trusted connections with the system account to remove deleted objects, others receive an unwilling to perform.
* s4-dsdb: check group membership only for non deleted objectsMatthieu Patou2011-07-211-2/+9
| | | | | Group membership has been already removed on deleted objects so there is no mean doing something on this kind of object.
* s4-dsdb: change the samba3sam test to add the show_deleted moduleAndrew Tridgell2011-07-211-1/+1
| | | | | | | this is needed now that the samldb module adds the show deleted control Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* pyldb: add unit test for ldbDn.compare_baseMatthieu Patou2011-07-211-0/+11
|
* ldb-python: add a function to Dn object to compare the Dn with a base DNMatthieu Patou2011-07-211-0/+17
|
* update/add my copyrightMatthieu Patou2011-07-215-1/+5
|
* s4-dsdb: In rootdse add extended dn info on all values for a given attributeMatthieu Patou2011-07-211-57/+66
| | | | And not only on the fist value as it was the case up to this changeset.
* s4-dsdb: add dsdb_module_extended function similar to other dsdb_module_* ↵Matthieu Patou2011-07-211-0/+61
| | | | functions
* s4-schema: add systemFlags to dsdb classes objectsMatthieu Patou2011-07-212-0/+2
|
* s4-test: don't fix broken objects during dbcheck testAndrew Tridgell2011-07-211-1/+1
| | | | | this leaves the database as-is, which makes it easier to examine the problem
* dbcheck: test the --reindex optionAndrew Tridgell2011-07-211-0/+5
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-test: added dbcheck run to test suiteAndrew Tridgell2011-07-213-0/+25
| | | | | | This should catch corruption that happens during a test run Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* samba-tool: nicer error in passwordsettings with no settingsAndrew Tridgell2011-07-211-0/+2
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* samba-tool: testparm doesn't take any credentialsAndrew Tridgell2011-07-211-0/+5
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* samba-tool: use 'exportkeytab' instead of 'dumpkeys'Andrew Tridgell2011-07-212-5/+5
| | | | | | | a 'keytab' is a particular format known to administrators, whereas 'keys' is a bit too vague Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* samba-tool: Fix __doc_ in base classesGiampaolo Lauria2011-07-211-3/+3
| | | | | | Changed prog to samba-tool as prog is only meaningful in Parser Signed-off-by: Andrew Tridgell <tridge@samba.org>
* samba-tool: removed synopsis code in base classGiampaolo Lauria2011-07-211-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>
* samba-tool: Fixed bugs to determine min and max # of allowed argumentsGiampaolo Lauria2011-07-211-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>
* samba-tool: Improved --help functionalityGiampaolo Lauria2011-07-211-2/+6
| | | | | | | Added a new --help msg Return an error when no subcommand is specified Signed-off-by: Andrew Tridgell <tridge@samba.org>
* samba-tool: fixed __doc__ in base classesGiampaolo Lauria2011-07-211-3/+3
| | | | | | Replaced the "net" word with %prog in all instances Signed-off-by: Andrew Tridgell <tridge@samba.org>
* samba-tool: Fix error handling in SuperCommand classGiampaolo Lauria2011-07-211-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>
* samba-tool: improved Option list for all user commandsGiampaolo Lauria2011-07-211-10/+7
| | | | | | Added metavar values for -H and added some default values for other options Signed-off-by: Andrew Tridgell <tridge@samba.org>
* samba-tool: added error handling for the user commandGiampaolo Lauria2011-07-211-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>
* samba-tool: fixed drs commands synopsisGiampaolo Lauria2011-07-211-5/+5
| | | | | | Added [options] as needed Signed-off-by: Andrew Tridgell <tridge@samba.org>
* samba-tool: fixed samba-tool user syntaxAndrew Tridgell2011-07-211-1/+1
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* samba-tool: fixed synopsis on user commandsGiampaolo Lauria2011-07-211-1/+1
| | | | | | Fixed all synopsis to contain [options], filter, and username Signed-off-by: Andrew Tridgell <tridge@samba.org>
* samba-tool: fixed synopsis on all "user" commandsGiampaolo Lauria2011-07-211-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>
* samba-tool: moved takes_optiongroups definition to Command base classGiampaolo Lauria2011-07-2119-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>
* samba-tool: removed the assignment to parser.progGiampaolo Lauria2011-07-211-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>
* samba-tool: fixed prog name in samba-toolGiampaolo Lauria2011-07-211-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>
* samba-tool: update vampire.py messageGiampaolo Lauria2011-07-211-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>
* samba-tool: removed join as it has been replaced by domain joinGiampaolo Lauria2011-07-212-80/+0
| | | | | | This is part of the samba-tool work to fit the object-action model Signed-off-by: Andrew Tridgell <tridge@samba.org>
* samba-tool: moved join to domain joinGiampaolo Lauria2011-07-211-1/+57
| | | | | | This is part of the samba-tool work to fit the object-action model Signed-off-by: Andrew Tridgell <tridge@samba.org>
* samba-tool: updated test suite for the new domain dumpkeys optionGiampaolo Lauria2011-07-211-2/+2
| | | | | | The test suite has been changed to reflect the move from export to "domain dumpkeys" to reflect the object-action model Signed-off-by: Andrew Tridgell <tridge@samba.org>
* samba-tool: removed export as it has been moved to domain dumpkeysGiampaolo Lauria2011-07-212-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>
* samba-tool: moved export to domain dumpkeysGiampaolo Lauria2011-07-211-0/+23
| | | | | | This is part of the samba-tool work to fit the object-action model Signed-off-by: Andrew Tridgell <tridge@samba.org>
* samba-tool: updated test suite to reflect the move from domainlevel to ↵Giampaolo Lauria2011-07-211-1/+1
| | | | | | | | domain level The test suite needs to reflect the change from domailevel to "domain level" to fit the object-action model Signed-off-by: Andrew Tridgell <tridge@samba.org>
* samba-tool: removed domainlevel as it has been moved to domain levelGiampaolo Lauria2011-07-212-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>
* samba-tool: moved domainlevel to domain levelGiampaolo Lauria2011-07-211-0/+201
| | | | | | This is part of the samba-tool work to fit the object-action model Signed-off-by: Andrew Tridgell <tridge@samba.org>
* samba-tool: removed machinepw as it has been moved to domain machinepasswordGiampaolo Lauria2011-07-212-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>
* samba-tool: moved machinepw to domain machinepasswordGiampaolo Lauria2011-07-211-1/+37
| | | | | | This is part of the samba-tool work to fit the object-action model Signed-off-by: Andrew Tridgell <tridge@samba.org>
* samba-tool: update test suite for the new domain objectGiampaolo Lauria2011-07-213-9/+9
| | | | | | Changed test suite to reflect the changes from setpassword to "domain setpassword" to fit the object-action model Signed-off-by: Andrew Tridgell <tridge@samba.org>
* samba-tool: removed pwsettingsGiampaolo Lauria2011-07-211-197/+0
| | | | | | pwsettings functionality has been moved to user passwordsettings to fit the object-action model Signed-off-by: Andrew Tridgell <tridge@samba.org>
* samba-tool: created domain object, moved pwsettings to user passwordsettingsGiampaolo Lauria2011-07-212-2/+214
| | | | | | This is part of the samba-tool work to fit the object-action model Signed-off-by: Andrew Tridgell <tridge@samba.org>
* samba-tool: update test suite for add setpasswordGiampaolo Lauria2011-07-214-9/+7
| | | | | | 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>
* samba-tool: removed setpassword.pyGiampaolo Lauria2011-07-211-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>
* samba-tool: added setpassword to userGiampaolo Lauria2011-07-211-2/+58
| | | | | | This is part of the samba-tool work to fit the object-action model Signed-off-by: Andrew Tridgell <tridge@samba.org>