Giampaolo Lauria
20f2034f38
samba-tool: Improve getopt.py error handling
...
Throw an exception when the --option value is invalid
2011-10-19 03:34:07 +02:00
Giampaolo Lauria
8dbf79941f
samba-tool: Improve getopt.py error handling
...
Throw an exception when --option value is not in the form "a=b"
2011-10-19 03:34:07 +02:00
Giampaolo Lauria
0c342f8986
samba-tool: Improve getopt.py error handling
...
Raise exception when -d or --debuglevel value is <0
2011-10-19 03:34:07 +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
Kai Blin
8c076862ad
s4 provision: DNS backend should be set by caller
...
Autobuild-User: Kai Blin <kai@samba.org>
Autobuild-Date: Mon Oct 17 09:51:12 CEST 2011 on sn-devel-104
2011-10-17 09:51:12 +02:00
Kai Blin
d58f266d19
s4 provision/dns: Clean up os level handling
2011-10-17 08:16:12 +02:00
Kai Blin
6382721ce0
s4 provision/dns: Clean up backend handling
2011-10-17 08:16:12 +02:00
Kai Blin
41d48626e2
s4 provision: Reword opinionated dns backend help text, add NONE backend
2011-10-17 08:16:12 +02:00
Kai Blin
292554c396
s4 provision: Rename bind9 flatfile backend to BIND9_FLATFILE
2011-10-17 08:16:12 +02: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
1b27efd910
samba-tool: Add test to make sure all commands have a short description set.
...
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Fri Oct 14 01:53:45 CEST 2011 on sn-devel-104
2011-10-14 01:53:45 +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
Andrew Bartlett
3cdb1fe440
s4-messaging: Pass the loadparm context, not just the messaging path
...
This will allow the TDB layer to get at the lp_ctx for tdb options.
Andrew Bartlett
2011-10-13 14:06:07 +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
3978a50243
samba.getopt: Refactor parsing of --kerberos argument into separate function.
2011-10-13 03:33:20 +02:00
Jelmer Vernooij
de9b3b6190
samba-tools/testparm: Add really basic unit test, demonstrating how to write unit tests for samba-tool in Python.
...
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Thu Oct 13 01:56:20 CEST 2011 on sn-devel-104
2011-10-13 01:56:20 +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
c6481f4f24
samba.upgrade: Use list comprehension.
...
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Wed Oct 12 22:44:40 CEST 2011 on sn-devel-104
2011-10-12 22:44:40 +02:00
Jelmer Vernooij
eb971614e5
samba.getopt: Allow --kerberos=auto, and fix exception name if an unknown
...
value is specified.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Wed Oct 12 02:12:21 CEST 2011 on sn-devel-104
2011-10-12 02:12:21 +02:00
Andrew Bartlett
1255383140
s4-s3-upgrade: Allow import (just without a uid mapping) where getpwnam fails
...
This allows the tests to pass on systems without a jelmer user :-)
Andrew Bartlett
2011-10-11 13:41:36 +11: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
Jelmer Vernooij
dc3df567be
upgrade: Avoid catching all exceptions, just catch the ones we care about.
2011-10-08 14:15:11 +02:00
Stefan Metzmacher
c180feb16c
s4:dbchecker: make use of local_oid controls for dsdb.DSDB_CONTROL_DBCHECK
...
metze
2011-10-07 12:20:49 +02:00
Andrew Tridgell
3fca66e2b3
samba-tool: add support for fixing broken backlinks in dbcheck
...
this allows dangling backlinks to be removed
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Thu Oct 6 07:08:35 CEST 2011 on sn-devel-104
2011-10-06 07:08:35 +02:00
Andrew Tridgell
6b5d8e02f7
s4-subdomain: create trust record with forest root DC
...
when we create a sub-subdomain we need to use the forest naming master
to setup the partition changes for the new subdomain. We also need to
setup the trust with the forest root, as that allows us to create the
needed _msdcs DNS entries in the forest
Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Tue Oct 4 07:40:59 CEST 2011 on sn-devel-104
2011-10-04 07:40:59 +02:00
Andrew Tridgell
fb937afbec
s4-join: enable cleanup on failed join
...
if a join fails, then cleanup the old records
2011-10-04 15:08:57 +11:00
Andrew Tridgell
7d18241faa
dns: added example python script for dnsserver protocol
2011-10-04 15:08:56 +11:00
Andrew Tridgell
2fbdaab331
samba-tool: cope with GC compares in ldapcmp
...
the two base DNs do not need to match when doing GC replica compares
2011-10-04 15:08:56 +11:00
Andrew Tridgell
aed0d2e5eb
samba-tool: added --full-sync and --sync-all options to samba-tool drs replicate
2011-10-04 15:08:56 +11:00
Andrew Tridgell
5d4f474b58
s4-dbchecker: fixed handling of DSDB DNs in dbcheck
...
we need to use the original value, as ldb.Dn() can't parse a DSDB
binary DN
2011-10-04 15:08:56 +11:00
Andrew Tridgell
0921e75001
s4-dbcheck: fixed transaction nesting in dbcheck
...
ensure we don't cancel a transaction we didn't start
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Thu Sep 22 03:39:59 CEST 2011 on sn-devel-104
2011-09-22 03:39:59 +02:00
Andrew Tridgell
4dbc604d9c
samba-tool: use show_recycled in dbchecker
...
we need to use show_recycled instead of show_deleted in dbchecker to
allow us to see recycled objects
2011-09-22 10:00:49 +10:00
Andrew Tridgell
966b5d5de2
pyldb: fixed places where we try to concatenate a Dn with a string
...
you need to either use str(dn) or use %s in a format string
2011-09-19 10:57:03 +10:00
Andrew Tridgell
f79d6ee929
s4-provision: use get_config_basedn() in DNS setup
...
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-09-19 10:57:03 +10:00
Andrew Tridgell
579fd43057
samba-tool: use get_config_basedn() to get configuration NC DN
...
this allows these commands to work for subdomains
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-09-19 10:57:03 +10:00
Andrew Bartlett
aa960d8fa7
s4-provision Add initial support for joining as a new subdomain
...
To do this we need to reorganise a lot of the provision code, so that
we can create the framework for the inbound replicaton of the config
and schema partitions and then add in the new subdomain locally.
Andrew Bartlett
2011-09-19 10:57:02 +10:00
Matthias Dieter Wallnöfer
4117c29138
s4:upgrade_from_s3 - old s3 versions < 3.4.x don't have a "state directory" param
...
Hence the "lock directory" path has to be used instead.
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Fri Sep 16 00:07:30 CEST 2011 on sn-devel-104
2011-09-16 00:07:30 +02:00
Andrew Bartlett
c6cf070df0
s4-s3-upgrade Improve samba-tool domain samba3upgrade behaviour
...
The --realm argument is again optional (the previous code would take the default
from the default smb.conf, not the one specified) and --targetdir is now a
named argument much like it is to provision.
We now test the --testparm option to ensure it behaves the way we expect.
Andrew Bartlett
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Tue Sep 13 16:30:31 CEST 2011 on sn-devel-104
2011-09-13 16:30:31 +02:00
Matthias Dieter Wallnöfer
4e87a8419c
s4:upgrade_from_s3 - restore "get_testparm_var" method
...
This has accidentally been removed by commit 8268c2d4e231b05b439bc70331b75342b35daa4e.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2011-09-13 14:53:24 +02:00