summaryrefslogtreecommitdiff
path: root/source4/scripting/python
AgeCommit message (Collapse)AuthorFilesLines
2011-10-14samba-tool: Add test to make sure all commands have a short description set.Jelmer Vernooij1-0/+11
Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Fri Oct 14 01:53:45 CEST 2011 on sn-devel-104
2011-10-14samba-tool: Add test to make sure all commands have a synopsis set.Jelmer Vernooij3-3/+26
2011-10-14samba-tool: Move main command implementation to samba.netcmd.main, so it is ↵Jelmer Vernooij2-1/+61
accessible by the testsuite.
2011-10-14samba-tool: Don't require full prog line to be in synopsis.Jelmer Vernooij17-98/+80
2011-10-14samba.netcmd: Reintroduce Command.name.Jelmer Vernooij2-0/+13
2011-10-14samba-tool: Determine long option from docstring.Jelmer Vernooij3-17/+25
2011-10-14creds: Remove unnecessary calls to credopts.get_credentials.Jelmer Vernooij1-2/+0
2011-10-14python: Remove extra newlines.Jelmer Vernooij1-3/+0
2011-10-13s4-messaging: Pass the loadparm context, not just the messaging pathAndrew Bartlett1-1/+0
This will allow the TDB layer to get at the lp_ctx for tdb options. Andrew Bartlett
2011-10-13samba-tool: Use self.outf in a few more places.Jelmer Vernooij13-88/+104
Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Thu Oct 13 05:06:52 CEST 2011 on sn-devel-104
2011-10-13samba-tool delegation: Use self.outf, simplify some code.Jelmer Vernooij1-14/+8
2011-10-13samba.getopt: Refactor parsing of --kerberos argument into separate function.Jelmer Vernooij1-13/+16
2011-10-13samba-tools/testparm: Add really basic unit test, demonstrating how to write ↵Jelmer Vernooij1-0/+29
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-13netcmd: Add Command.get_logger() method.Jelmer Vernooij3-5/+8
2011-10-13netcmd: Add errf stream to command instances.Jelmer Vernooij1-7/+7
2011-10-13samba-tool/testparm: Fix traceback when checking client name/ip against ↵Jelmer Vernooij1-2/+2
hosts allowed.
2011-10-13samba-tool/testparm: Fix handling of command-line options.Jelmer Vernooij1-26/+29
2011-10-12samba.upgrade: Use list comprehension.Jelmer Vernooij1-4/+4
Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Wed Oct 12 22:44:40 CEST 2011 on sn-devel-104
2011-10-12samba.getopt: Allow --kerberos=auto, and fix exception name if an unknownJelmer Vernooij1-1/+4
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-11s4-s3-upgrade: Allow import (just without a uid mapping) where getpwnam failsAndrew Bartlett1-1/+1
This allows the tests to pass on systems without a jelmer user :-) Andrew Bartlett
2011-10-08netcmd/domain: Remove unused imports.Jelmer Vernooij1-2/+2
2011-10-08netcmd: Avoid catching all exceptions, avoid using ';' at the end of lines.Jelmer Vernooij1-9/+8
Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Oct 8 15:46:46 CEST 2011 on sn-devel-104
2011-10-08upgrade: Avoid catching all exceptions, just catch the ones we care about.Jelmer Vernooij1-11/+9
2011-10-07s4:dbchecker: make use of local_oid controls for dsdb.DSDB_CONTROL_DBCHECKStefan Metzmacher1-1/+1
metze
2011-10-06samba-tool: add support for fixing broken backlinks in dbcheckAndrew Tridgell1-20/+32
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-04s4-subdomain: create trust record with forest root DCAndrew Tridgell1-7/+33
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-04s4-join: enable cleanup on failed joinAndrew Tridgell1-1/+1
if a join fails, then cleanup the old records
2011-10-04dns: added example python script for dnsserver protocolAndrew Tridgell1-0/+89
2011-10-04samba-tool: cope with GC compares in ldapcmpAndrew Tridgell1-3/+5
the two base DNs do not need to match when doing GC replica compares
2011-10-04samba-tool: added --full-sync and --sync-all options to samba-tool drs replicateAndrew Tridgell1-3/+9
2011-10-04s4-dbchecker: fixed handling of DSDB DNs in dbcheckAndrew Tridgell1-1/+1
we need to use the original value, as ldb.Dn() can't parse a DSDB binary DN
2011-09-22s4-dbcheck: fixed transaction nesting in dbcheckAndrew Tridgell1-2/+6
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-22samba-tool: use show_recycled in dbcheckerAndrew Tridgell1-13/+16
we need to use show_recycled instead of show_deleted in dbchecker to allow us to see recycled objects
2011-09-19pyldb: fixed places where we try to concatenate a Dn with a stringAndrew Tridgell2-6/+6
you need to either use str(dn) or use %s in a format string
2011-09-19s4-provision: use get_config_basedn() in DNS setupAndrew Tridgell1-1/+1
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-09-19samba-tool: use get_config_basedn() to get configuration NC DNAndrew Tridgell2-9/+7
this allows these commands to work for subdomains Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-09-19s4-provision Add initial support for joining as a new subdomainAndrew Bartlett2-133/+154
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-16s4:upgrade_from_s3 - old s3 versions < 3.4.x don't have a "state directory" ↵Matthias Dieter Wallnöfer1-1/+5
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-13s4-s3-upgrade Improve samba-tool domain samba3upgrade behaviourAndrew Bartlett2-13/+13
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-13s4:upgrade_from_s3 - restore "get_testparm_var" methodMatthias Dieter Wallnöfer1-1/+4
This has accidentally been removed by commit 8268c2d4e231b05b439bc70331b75342b35daa4e. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2011-09-13s4-subdomain: match windows form for trustAuthInOutBlobAndrew Tridgell1-11/+3
Windows does not put a version element in the array Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-09-13s4-subdomain: fixed domain guid choice for subdomain joinAndrew Tridgell1-4/+13
We need to use the domain GUID that the server choose in the ncName link Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-09-13s4-subdomain: don't delete account DN not created in subdomain joinAndrew Tridgell1-5/+8
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-09-13s4-subdomain: use a password length of 128Andrew Tridgell1-1/+1
windows seems to use a fixed size for this password. It is possible that windows servers can only handle one size, given we have observed some strange behaviour from the windows kdc when we setup trusts Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-09-13s4-join: fixed non-subdomain joinAndrew Tridgell1-0/+2
these two vars need to be initialised for general join Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-09-13s4-subdomain: fixed invocationID and hostIPs in subdomain joinAndrew Tridgell2-14/+18
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-09-13s4-subdomain more work on sub-domain joinAndrew Bartlett1-49/+267
we can now create a subdomain of an existing windows domain using: samba-tool domain join sub.domain.dns.name subdomain The ordering of the creation of the key records is quite tricky, especially for the NTDSDSA object Pair-Programmed-With: Andrew Tridgell <tridge@samba.org>
2011-09-13s4-join Add a partitions DN when we join a subdomainAndrew Bartlett1-0/+16
2011-09-13s4-provision Perform 'modify' operations as systemAndrew Bartlett1-5/+13
We need this so that we can modify the cn=configuration partition when we are setting up a new subdomain. The serverReference on our ${SERVERDN} is in that partition, and without this change creating a new subdomain fails due to ACLs. Andrew Bartlett
2011-09-13s4-join supply the NTDS GUID to the provisionAndrew Bartlett1-1/+1
Unlike other join operations, the creation of a subdomain makes local changes to the DB, so we need to pass in the NTDS GUID to ensure the one set on the object created in the parent domain is the one that is used. Andrew Bartlett