Amitay Isaacs
244ecc844d
s4-s3-upgrade: Add --verbose option to print extra details
2011-11-18 14:38:28 +11:00
Amitay Isaacs
6a2a2dfa5f
samba-tool: Fix the domain account policy max_pwd_age calculation
...
Windows sets maxPwdAge to -0x8000000000000000 when maximum password
age is set to 0 days.
2011-11-18 14:38:27 +11:00
Giampaolo Lauria
f057cb4f84
samba-tool: Remove "domain machinepassword" command
...
As per Andrew Bartlett's comment:
"we should remove it. This was originally a script to support some
interactions between samba3 and samba4, when they were in distinct build
systems. We now can call between the two systems without difficulty at
runtime, so this command has no value."
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
2011-11-15 11:12:07 +11:00
Jelmer Vernooij
c529c12c7d
upgrade: use logger.warning.
2011-11-13 18:06:06 +01:00
Theresa Halloran
7d84805ac0
s4: samba-tool time --help documentation improvements
...
Signed-off-by: Theresa Halloran <thallora@linux.vnet.ibm.com>
Signed-off-by: Andrew Tridgell <tridge@samba.org>
Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Thu Nov 10 06:04:22 CET 2011 on sn-devel-104
2011-11-10 06:04:22 +01:00
Theresa Halloran
4ea6225c58
s4: samba-tool group --help documentation improvements
...
Signed-off-by: Theresa Halloran <thallora@linux.vnet.ibm.com>
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-11-10 14:24:38 +11:00
Andrew Tridgell
862823a776
samba-tool: print samaccountname in samba-tool user list
...
this is the attribute the admin needs for other commands
Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
2011-11-10 14:24:21 +11:00
Giampaolo Lauria
1cef3212a1
samba-tool: Added new "user disable" command
2011-11-10 14:24:21 +11:00
Giampaolo Lauria
34ff5d29e6
samba-tool: Added "user list" command
2011-11-10 14:24:21 +11:00
Giampaolo Lauria
da21ff82a5
samba-tool: Change internal argument name in domain machinepassword
2011-11-10 14:24:21 +11:00
Giampaolo Lauria
53fc437d05
samba-tool: Fix domain machinepassword secret db search
...
pair programmed with Jelmer Vernooij
Add search to include secrets.ldb
2011-11-10 14:24:21 +11:00
Giampaolo Lauria
ec5afae292
samba-tool: Fix domain machinepassword name search
...
Append '$' to name provided by user to search for a machine account
when necessary
2011-11-10 14:24:21 +11:00
Matthias Dieter Wallnöfer
099d687d1a
s4:samba-tool user command - always initialise the boolean arguments properly
...
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
2011-11-08 22:28:38 +01:00
Matthias Dieter Wallnöfer
a53bc0a91b
s4:samba-tool - other fix for Gémes Géza patch regarding parameter handling
...
The condition has not been specified correctly since we are expecting a boolean.
Pointed out by Jelmer.
Reviewed-by: Jelmer
2011-11-08 20:53:08 +01:00
Matthias Dieter Wallnöfer
ce8b5d520b
s4:samba-tool - fix Gémes Géza patch regarding parameter handling
...
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
2011-11-07 19:35:05 +01:00
Gémes Géza
1d9ff23f8e
Add a --random-password option to user create command.
...
Signed-Off-By: Jelmer Vernooij <jelmer@samba.org>
Signed-off-by: Matthias Dieter Wallnöfer <mdw@samba.org>
2011-11-07 17:27:34 +01:00
Theresa Halloran
384eaba38e
s4: samba-tool user --help documenation improvements
...
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
2011-11-07 01:39:24 +01:00
Jelmer Vernooij
1ad05d8c09
Some formatting fixes, remove unused imports.
...
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sun Nov 6 06:22:33 CET 2011 on sn-devel-104
2011-11-06 06:22:33 +01:00
Giampaolo Lauria
fe6913ada3
samba-tool: Fix short description and error msgs in domain level
...
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Thu Nov 3 16:53:16 CET 2011 on sn-devel-104
2011-11-03 16:53:16 +01:00
Giampaolo Lauria
64e7e448fb
samba-tool: Fix --quiet option in domain samba3upgrade
...
--quiet option does not require an argument
2011-11-03 15:12:27 +01:00
Giampaolo Lauria
16437edf48
samba-tool: Improve "delegation" command error handling
...
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-03 15:12:27 +01:00
Giampaolo Lauria
967ac70a35
samba-tool: Improve "delegation" command error message
...
Write a more specific error msg when the on|off arg is invalid
2011-11-03 15:12:27 +01:00
Giampaolo Lauria
9ff2874e5e
samba-tool: Improve "delegation" command error handling
...
Display a more meaningful error msg when user account not found
Assert when returned number of entries is not 0 or 1
2011-11-03 15:12:27 +01:00
Giampaolo Lauria
82c6599e15
samba-tool: Fix "delegation show" command synopsis
...
Removed "show" from synopsis as it is no longer necessary
2011-11-03 15:12:27 +01:00
Matthieu Patou
2db221c384
s4-sites: Document, fix under optimal coding, use exceptions
...
Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Wed Nov 2 22:35:00 CET 2011 on sn-devel-104
2011-11-02 22:35:00 +01:00
Jelmer Vernooij
23d3880725
samba.netcmd: Pass in outf/errf.
...
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Wed Nov 2 20:09:40 CET 2011 on sn-devel-104
2011-11-02 20:09:40 +01:00
Matthieu Patou
dfd341a2fd
samba-tool: add subcommand for sites manipulation
...
Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Wed Nov 2 15:14:32 CET 2011 on sn-devel-104
2011-11-02 15:14:31 +01:00
Amitay Isaacs
9abfaa3bbb
samba-tool: Improve the description of dns subcommands.
...
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-11-02 15:26:54 +11:00
Amitay Isaacs
66121dc896
samba-tool: Enable comparison of DNS naming contexts in ldapcmp
...
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-11-02 15:26:54 +11:00
Jelmer Vernooij
4b67a10ed0
Simplify handling of user add command.
...
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Tue Nov 1 14:25:39 CET 2011 on sn-devel-104
2011-11-01 14:25:39 +01:00
Theresa Halloran
b26a4f6232
s4: samba-tool subcommand rename - change samba-tool user add to samba-tool user create
...
Signed-off-by: Theresa Halloran <thallora@linux.vnet.ibm.com>
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2011-10-23 15:23:28 -07:00
Amitay Isaacs
b619705c22
samba-tool: Added dns command for DNS management
...
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-10-20 05:53:05 +02:00
Andrew Bartlett
43f23b55c4
s4-s3-upgrade rename samba-tool domain samba3upgrade --libdir to --dbdir for 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-19 15:43:04 +02:00
Andrew Bartlett
5f11615810
s4-s3-upgrade: Give a better clue when we cannot open secrets.tdb
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-10-18 13:13:31 +11:00
Matthieu Patou
a1767f74af
s4: check that the xattr are supported in the folder where we want to provision
...
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-16 00:01:36 +02:00
Jelmer Vernooij
37a4bcd28b
samba-tool: Add test to make sure all commands have a synopsis set.
2011-10-14 00:22:57 +02:00
Jelmer Vernooij
9e1ef61b34
samba-tool: Move main command implementation to samba.netcmd.main, so it is accessible by the testsuite.
2011-10-14 00:22:57 +02:00
Jelmer Vernooij
9213f398ad
samba-tool: Don't require full prog line to be in synopsis.
2011-10-14 00:22:57 +02:00
Jelmer Vernooij
b5d5945801
samba.netcmd: Reintroduce Command.name.
2011-10-14 00:22:57 +02:00
Jelmer Vernooij
be7a75b29a
samba-tool: Determine long option from docstring.
2011-10-14 00:22:56 +02:00
Jelmer Vernooij
60de9b7bbf
creds: Remove unnecessary calls to credopts.get_credentials.
2011-10-14 00:22:56 +02:00
Jelmer Vernooij
36e3c15f54
python: Remove extra newlines.
2011-10-14 00:22:56 +02:00
Jelmer Vernooij
88d997a63e
samba-tool: Use self.outf in a few more places.
...
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Thu Oct 13 05:06:52 CEST 2011 on sn-devel-104
2011-10-13 05:06:52 +02:00
Jelmer Vernooij
0e70e26d92
samba-tool delegation: Use self.outf, simplify some code.
2011-10-13 03:33:21 +02:00
Jelmer Vernooij
6f9a3177d4
netcmd: Add Command.get_logger() method.
2011-10-13 00:23:39 +02:00
Jelmer Vernooij
63c9186e92
netcmd: Add errf stream to command instances.
2011-10-13 00:23:39 +02:00
Jelmer Vernooij
fba4b7a5b9
samba-tool/testparm: Fix traceback when checking client name/ip against hosts allowed.
2011-10-13 00:23:39 +02:00
Jelmer Vernooij
ba5b8a1056
samba-tool/testparm: Fix handling of command-line options.
2011-10-13 00:23:39 +02:00
Jelmer Vernooij
d7d5858b74
netcmd/domain: Remove unused imports.
2011-10-08 22:28:25 +02:00
Jelmer Vernooij
8111001977
netcmd: Avoid catching all exceptions, avoid using ';' at the end of lines.
...
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sat Oct 8 15:46:46 CEST 2011 on sn-devel-104
2011-10-08 15:46:46 +02:00