summaryrefslogtreecommitdiffstats
path: root/source4/scripting/python/samba/upgradehelpers.py
Commit message (Collapse)AuthorAgeFilesLines
* Move python modules from source4/scripting/python/ to python/.Jelmer Vernooij2013-03-021-913/+0
| | | | | | | Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Sat Mar 2 03:57:34 CET 2013 on sn-devel-104
* samba_upgradeprovision: Remove options to fix FS ACLsAndrew Bartlett2013-02-191-48/+1
| | | | | | | | | | | | samba-tool ntacl sysvolreset handles this better, and makes this tool much less confusing internally. Andrew Bartlett Reviewed-by: Matthieu Patou <mat@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Tue Feb 19 06:06:41 CET 2013 on sn-devel-104
* samba_upgradeprovision: detect dns_backend for the reference provisionStefan Metzmacher2013-01-271-2/+1
| | | | | | | | | | | | | If we have a DomainDnsZone partition, we use BIND9_DLZ as backend and fix errors in the ForestDnsZone and DomainDnsZone partitions. Note: this should work fine also for SAMBA_INTERNAL. If the current setup doesn't use dns specific partitions (e.g. alpha13 setups) we pass dns_backend=BIND9_FLATFILE. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* provision: No longer use the wheel group in new AD DomainsAndrew Bartlett2012-10-181-2/+2
| | | | | | | | | | | The issue here is that if we set S-1-5-32-544 (administrators) to a GID only, then users cannot force a mandetory profile to be owned by administrators (which is a requirement). There is no particularly useful reason for us to enforce this matching a system group. Andrew Bartlett
* sanba.upgradehelpers: Use standard functionality for getting temp dir.Jelmer Vernooij2012-09-271-3/+0
|
* s4-python: Various formatting fixes.Jelmer Vernooij2012-09-271-6/+6
| | | | | | * Trailing whitespace * use of "==" where "is" should be used * double spaces
* s4:upgradehelpers.py: don't require a dns-$HOSTNAME accountStefan Metzmacher2012-09-121-3/+0
| | | | metze
* s4-upgradeprovision: Use ntvfs in reference provisionAndrew Bartlett2012-08-231-1/+1
| | | | | | | We do not need filesystem ACLs set when creating the reference provision, so it is easier to use the NTVFS backend as it does not cause trouble with make test. Andrew Bartlett
* LDB/s4 - do not use the "(dn=...)" syntax on filters anymoreMatthias Dieter Wallnöfer2012-03-261-7/+7
| | | | | | | Make it AD-compatible using "(distinguishedName=...)". Reviewed-by: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* Factorize code from findprovisionusnranges in order to solve bug #8504Matthieu Patou2012-03-171-2/+124
|
* s4-python: Remove env from non-executable samba scripts.Andreas Schneider2012-03-131-2/+0
|
* s4-python: Remove execute flag of upgradehelpers.py.Andreas Schneider2012-03-131-0/+0
|
* upgradehelpers: Simplify transaction handling.Jelmer Vernooij2012-02-271-33/+16
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Mon Feb 27 05:25:04 CET 2012 on sn-devel-104
* provision: Leave result reporting up to caller.Jelmer Vernooij2012-02-261-1/+1
|
* provision: Make sure target directory is created early.Jelmer Vernooij2012-02-071-0/+2
| | | | | | | | This is necessary when using the target directory to store temporary files. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Tue Feb 7 02:45:37 CET 2012 on sn-devel-104
* s4-provision: Make BIND9_DLZ as the default backend for DNSAmitay Isaacs2011-11-291-1/+1
|
* s4-provision Remove options for LDAP backend to reduce user confusionAndrew Bartlett2011-11-081-3/+3
| | | | | | | | | | | | We do not support the LDAP backend any more, but keep the code in case someone comes up with an interesting use case that could leverage this in a very particular situation. In order to keep the code, we must test it, so we keep just this much of the support around. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Tue Nov 8 04:33:49 CET 2011 on sn-devel-104
* s4 provision: DNS backend should be set by callerKai Blin2011-10-171-1/+2
| | | | | Autobuild-User: Kai Blin <kai@samba.org> Autobuild-Date: Mon Oct 17 09:51:12 CEST 2011 on sn-devel-104
* acl: Improve error message when setting acls fails.Jelmer Vernooij2011-08-011-4/+12
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Mon Aug 1 18:59:12 CEST 2011 on sn-devel-104
* ldb: use base searches for @ special DNsAndrew Tridgell2011-07-131-4/+2
| | | | | | subtree searches on these DNs don't work any more Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-upgradeprovision: improve message outputMatthieu Patou2011-06-191-1/+1
|
* s4-upgradeprovision: handle the fact that oEMInformation might not be presentMatthieu Patou2011-06-191-2/+5
|
* s4-python: make checks of sacl in get_diff_sddls optionnalMatthieu Patou2011-06-191-2/+6
|
* s4-upgradeprovisision: fix bug 8063, old SD can miss some componenent ↵Matthieu Patou2011-06-191-16/+20
| | | | | | | | | (group, owner, ...) Don't make the assumption that SD are correct, they can be wrong and misformed. Fix this bug: https://bugzilla.samba.org/show_bug.cgi?id=8063
* s4-python: Remove not used importsMatthieu Patou2011-05-211-3/+2
|
* s4-python: move function find_provision_key_parameters to provision ↵Matthieu Patou2011-05-211-108/+0
| | | | namespace as it can be used not only for upgradeprovision
* s4-python: keep wheel_gid as an integerMatthieu Patou2011-05-171-1/+1
|
* upgradeprovision: Fix typoMatthieu Patou2011-03-201-1/+1
|
* s4-provision Remove setup_path, setup_dir and find_setup_dirAndrew Bartlett2011-02-071-3/+2
| | | | | | | | | | | | | | We now have a reliable way to know the current location of the templates: dyn_SETUPDIR, which is updated for both the in-build and installed binaries. This replaces the function arguments and the distributed resolution of the setup directory with one 'global' function (imported as required). This also removes the ability to specify an alternate setup directory on the command line, as this was rarely if ever used and never tested. Andrew Bartlett
* s4-upgradeprovision: renames need a relax to avoid subtree_rename checksAndrew Tridgell2011-02-071-2/+3
|
* s4-provision: removed spurious os.chdir() from upgradehelpers.pyAndrew Tridgell2011-02-071-1/+0
| | | | | | this breaks make test with a top level build, and is not needed Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-python: Add some more module docstrings.Jelmer Vernooij2010-12-051-0/+1
|
* s4-samba-tool: fixed exception handling in subcommandsAndrew Tridgell2010-11-291-8/+8
| | | | | | | this switches to the new pattern of: except Exception, e: raise CommandError("some error message", e)
* samba.upgradehelpers: Simplify code a bit.Jelmer Vernooij2010-11-281-21/+17
|
* s4-python: Fix formatting of docstrings for the purpose of pydoctor.Jelmer Vernooij2010-11-281-25/+33
|
* python: use the ldbMessage + modify notation instead of modify_ldif that we ↵Matthieu Patou2010-11-121-7/+6
| | | | try to avoid
* upgradeprovision: fix pb with dns-hostname, regenerate a correct keytabMatthieu Patou2010-11-121-0/+48
|
* s4:upgradehelpers.py - use "clearTextPassword" rather than "userPassword"Matthias Dieter Wallnöfer2010-11-111-5/+8
| | | | It's the default internal s4 password change attribute
* upgradeprovision: use the same case for hostname in reference provision as ↵Matthieu Patou2010-09-261-1/+1
| | | | | | | in the current provision Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Sun Sep 26 01:21:52 UTC 2010 on sn-devel-104
* s4 provision: Add some documentation to GPO related functionsMatthieu Patou2010-08-191-2/+2
|
* s4 upgradeprovision: add more attrbutes the ignore listMatthieu Patou2010-08-191-0/+11
| | | | Also format in a pretty way the int64 ranges
* s4 upgradeprovision: upgrade_delta_samdb return a msg_diff of @ATTRIBUTESMatthieu Patou2010-08-191-9/+14
| | | | | This is used by upgradeprovision to readd this delta just before loading a merged schema
* s4 upgradeprovision: Fixes for increment_keyversionMatthieu Patou2010-08-191-1/+2
| | | | fix
* s4 upgradeprovision: fix a typo and pass correct parameter to ↵Matthieu Patou2010-08-191-1/+1
| | | | increment_calculated_keyversion
* s4 upgradeprovision: introduce a new function to update the field use for ↵Matthieu Patou2010-07-151-3/+37
| | | | | | | | | | calculating msds-keyversionnumber This function change the version field of the unicodePwd in the replPropertyMetaData so that the version is equal or superior to the reference value passed. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4 provision: move update_machine_account_password to helpersMatthieu Patou2010-07-151-1/+44
| | | | | | This is to allow reuse of this function and also unit tests Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4 upgradeprovision: Try to support older Pythons.Michael Wood2010-06-251-1/+1
| | | | | | Use "...".split(sep, 1) instead of "...".partition(sep). Signed-off-by: Matthias Dieter Wallnöfer <mdw@samba.org>
* s4-python: python is not always in /usr/binAndrew Tridgell2010-06-241-1/+1
| | | | | | | | Using "#!/usr/bin/env python" is more portable. It still isn't ideal though, as we should really use the python path found at configure time. We do that in many places already, but some don't. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4-python: Remove more unused imports, fix use of sets in upgradehelpers.Jelmer Vernooij2010-06-201-2/+2
|
* Use standard Python syntax, booleans and set()'s where appropriate.Jelmer Vernooij2010-06-201-12/+12
|