summaryrefslogtreecommitdiffstats
path: root/source4/scripting/python
Commit message (Collapse)AuthorAgeFilesLines
* s4-s3-upgrade: Allow import (just without a uid mapping) where getpwnam failsAndrew Bartlett2011-10-111-1/+1
| | | | | | This allows the tests to pass on systems without a jelmer user :-) Andrew Bartlett
* netcmd/domain: Remove unused imports.Jelmer Vernooij2011-10-081-2/+2
|
* netcmd: Avoid catching all exceptions, avoid using ';' at the end of lines.Jelmer Vernooij2011-10-081-9/+8
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Oct 8 15:46:46 CEST 2011 on sn-devel-104
* upgrade: Avoid catching all exceptions, just catch the ones we care about.Jelmer Vernooij2011-10-081-11/+9
|
* s4:dbchecker: make use of local_oid controls for dsdb.DSDB_CONTROL_DBCHECKStefan Metzmacher2011-10-071-1/+1
| | | | metze
* samba-tool: add support for fixing broken backlinks in dbcheckAndrew Tridgell2011-10-061-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
* s4-subdomain: create trust record with forest root DCAndrew Tridgell2011-10-041-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
* s4-join: enable cleanup on failed joinAndrew Tridgell2011-10-041-1/+1
| | | | if a join fails, then cleanup the old records
* dns: added example python script for dnsserver protocolAndrew Tridgell2011-10-041-0/+89
|
* samba-tool: cope with GC compares in ldapcmpAndrew Tridgell2011-10-041-3/+5
| | | | the two base DNs do not need to match when doing GC replica compares
* samba-tool: added --full-sync and --sync-all options to samba-tool drs replicateAndrew Tridgell2011-10-041-3/+9
|
* s4-dbchecker: fixed handling of DSDB DNs in dbcheckAndrew Tridgell2011-10-041-1/+1
| | | | | we need to use the original value, as ldb.Dn() can't parse a DSDB binary DN
* s4-dbcheck: fixed transaction nesting in dbcheckAndrew Tridgell2011-09-221-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
* samba-tool: use show_recycled in dbcheckerAndrew Tridgell2011-09-221-13/+16
| | | | | we need to use show_recycled instead of show_deleted in dbchecker to allow us to see recycled objects
* pyldb: fixed places where we try to concatenate a Dn with a stringAndrew Tridgell2011-09-192-6/+6
| | | | you need to either use str(dn) or use %s in a format string
* s4-provision: use get_config_basedn() in DNS setupAndrew Tridgell2011-09-191-1/+1
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* samba-tool: use get_config_basedn() to get configuration NC DNAndrew Tridgell2011-09-192-9/+7
| | | | | | this allows these commands to work for subdomains Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-provision Add initial support for joining as a new subdomainAndrew Bartlett2011-09-192-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
* s4:upgrade_from_s3 - old s3 versions < 3.4.x don't have a "state directory" ↵Matthias Dieter Wallnöfer2011-09-161-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
* s4-s3-upgrade Improve samba-tool domain samba3upgrade behaviourAndrew Bartlett2011-09-132-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
* s4:upgrade_from_s3 - restore "get_testparm_var" methodMatthias Dieter Wallnöfer2011-09-131-1/+4
| | | | | | This has accidentally been removed by commit 8268c2d4e231b05b439bc70331b75342b35daa4e. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4-subdomain: match windows form for trustAuthInOutBlobAndrew Tridgell2011-09-131-11/+3
| | | | | | Windows does not put a version element in the array Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-subdomain: fixed domain guid choice for subdomain joinAndrew Tridgell2011-09-131-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>
* s4-subdomain: don't delete account DN not created in subdomain joinAndrew Tridgell2011-09-131-5/+8
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-subdomain: use a password length of 128Andrew Tridgell2011-09-131-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>
* s4-join: fixed non-subdomain joinAndrew Tridgell2011-09-131-0/+2
| | | | | | these two vars need to be initialised for general join Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-subdomain: fixed invocationID and hostIPs in subdomain joinAndrew Tridgell2011-09-132-14/+18
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-subdomain more work on sub-domain joinAndrew Bartlett2011-09-131-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>
* s4-join Add a partitions DN when we join a subdomainAndrew Bartlett2011-09-131-0/+16
|
* s4-provision Perform 'modify' operations as systemAndrew Bartlett2011-09-131-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
* s4-join supply the NTDS GUID to the provisionAndrew Bartlett2011-09-131-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
* s4-provision Split addition of users and well known principalsAndrew Bartlett2011-09-131-6/+11
| | | | | | | If we are provisioning a subdomain, then these are already in cn=configuration. Andrew Bartlett
* s4-provision Add initial support for joining as a new subdomainAndrew Bartlett2011-09-133-277/+406
| | | | | | | | 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
* s4-python: Fix some formatting issues.Jelmer Vernooij2011-09-135-37/+56
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Tue Sep 13 03:51:13 CEST 2011 on sn-devel-104
* s4-python: Consistently use spaces rather than tabs, fix headers in several ↵Jelmer Vernooij2011-09-1324-78/+149
| | | | places.
* Add samba.tests.source, which checks Python files for copyright lines, ↵Jelmer Vernooij2011-09-131-0/+168
| | | | license headers and invalid characters (dos newlines, tabs).
* testparm.py: Use standard formatting of header.Jelmer Vernooij2011-09-131-10/+10
|
* group.py: Remove tab characters.Jelmer Vernooij2011-09-131-2/+2
|
* drs.py: Remove tab characters.Jelmer Vernooij2011-09-131-36/+36
|
* domain.py: Remove tab characters.Jelmer Vernooij2011-09-131-12/+13
|
* delegation.py: Remove tab characters.Jelmer Vernooij2011-09-131-2/+2
|
* drs_utils.py: Remove tab characters.Jelmer Vernooij2011-09-131-9/+9
|
* samba-tool: Add "domain samba3upgrade" subcommandAmitay Isaacs2011-09-121-1/+107
| | | | | | | Added new command to upgrade from samba3 to samba4. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4-s3-upgrade: Check for duplicate sids before provisioningAmitay Isaacs2011-09-121-0/+10
| | | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4-provision: Fix the informational message from dns provisioningAmitay Isaacs2011-09-121-1/+1
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4-provision: Create private dir for dns in a separate functionAmitay Isaacs2011-09-121-12/+29
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4-s3-upgrade: Check for common user/group names before provisioningAmitay Isaacs2011-09-121-0/+10
| | | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4-provision: Generate appropriate named.conf file depending on dns_backendAmitay Isaacs2011-09-121-17/+31
| | | | | | | | | | | For --dns_backend=BIND9, generate the dns zone file, and named.conf with zone information. For --dns-backend=BIND9_DLZ, generate the named.conf with dlz directive. If no option is specified, default dns_backend is BIND9. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4-provision: Remove dupliate creation of dns/spn_update_list filesAmitay Isaacs2011-09-121-8/+1
| | | | | | | dns_update_list and spn_update_list are set up using create_dns_update_list() function. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4:samba-tool/domain.py - rename arguments "domain" -> "domain-level", ↵Matthias Dieter Wallnöfer2011-09-111-12/+12
| | | | | | | | | | | "forest" -> "forest-level" This should clarify the scope of them. Reviewed-by: Jelmer Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Sun Sep 11 20:12:52 CEST 2011 on sn-devel-104