summaryrefslogtreecommitdiff
path: root/source4/scripting/python/samba/upgradehelpers.py
AgeCommit message (Collapse)AuthorFilesLines
2012-03-26LDB/s4 - do not use the "(dn=...)" syntax on filters anymoreMatthias Dieter Wallnöfer1-7/+7
Make it AD-compatible using "(distinguishedName=...)". Reviewed-by: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2012-03-17Factorize code from findprovisionusnranges in order to solve bug #8504Matthieu Patou1-2/+124
2012-03-13s4-python: Remove env from non-executable samba scripts.Andreas Schneider1-2/+0
2012-03-13s4-python: Remove execute flag of upgradehelpers.py.Andreas Schneider1-0/+0
2012-02-27upgradehelpers: Simplify transaction handling.Jelmer Vernooij1-33/+16
Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Mon Feb 27 05:25:04 CET 2012 on sn-devel-104
2012-02-26provision: Leave result reporting up to caller.Jelmer Vernooij1-1/+1
2012-02-07provision: Make sure target directory is created early.Jelmer Vernooij1-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
2011-11-29s4-provision: Make BIND9_DLZ as the default backend for DNSAmitay Isaacs1-1/+1
2011-11-08s4-provision Remove options for LDAP backend to reduce user confusionAndrew Bartlett1-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
2011-10-17s4 provision: DNS backend should be set by callerKai Blin1-1/+2
Autobuild-User: Kai Blin <kai@samba.org> Autobuild-Date: Mon Oct 17 09:51:12 CEST 2011 on sn-devel-104
2011-08-01acl: Improve error message when setting acls fails.Jelmer Vernooij1-4/+12
Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Mon Aug 1 18:59:12 CEST 2011 on sn-devel-104
2011-07-13ldb: use base searches for @ special DNsAndrew Tridgell1-4/+2
subtree searches on these DNs don't work any more Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-06-19s4-upgradeprovision: improve message outputMatthieu Patou1-1/+1
2011-06-19s4-upgradeprovision: handle the fact that oEMInformation might not be presentMatthieu Patou1-2/+5
2011-06-19s4-python: make checks of sacl in get_diff_sddls optionnalMatthieu Patou1-2/+6
2011-06-19s4-upgradeprovisision: fix bug 8063, old SD can miss some componenent ↵Matthieu Patou1-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
2011-05-21s4-python: Remove not used importsMatthieu Patou1-3/+2
2011-05-21s4-python: move function find_provision_key_parameters to provision ↵Matthieu Patou1-108/+0
namespace as it can be used not only for upgradeprovision
2011-05-17s4-python: keep wheel_gid as an integerMatthieu Patou1-1/+1
2011-03-20upgradeprovision: Fix typoMatthieu Patou1-1/+1
2011-02-07s4-provision Remove setup_path, setup_dir and find_setup_dirAndrew Bartlett1-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
2011-02-07s4-upgradeprovision: renames need a relax to avoid subtree_rename checksAndrew Tridgell1-2/+3
2011-02-07s4-provision: removed spurious os.chdir() from upgradehelpers.pyAndrew Tridgell1-1/+0
this breaks make test with a top level build, and is not needed Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-12-05s4-python: Add some more module docstrings.Jelmer Vernooij1-0/+1
2010-11-29s4-samba-tool: fixed exception handling in subcommandsAndrew Tridgell1-8/+8
this switches to the new pattern of: except Exception, e: raise CommandError("some error message", e)
2010-11-28samba.upgradehelpers: Simplify code a bit.Jelmer Vernooij1-21/+17
2010-11-28s4-python: Fix formatting of docstrings for the purpose of pydoctor.Jelmer Vernooij1-25/+33
2010-11-12python: use the ldbMessage + modify notation instead of modify_ldif that we ↵Matthieu Patou1-7/+6
try to avoid
2010-11-12upgradeprovision: fix pb with dns-hostname, regenerate a correct keytabMatthieu Patou1-0/+48
2010-11-11s4:upgradehelpers.py - use "clearTextPassword" rather than "userPassword"Matthias Dieter Wallnöfer1-5/+8
It's the default internal s4 password change attribute
2010-09-26upgradeprovision: use the same case for hostname in reference provision as ↵Matthieu Patou1-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
2010-08-19s4 provision: Add some documentation to GPO related functionsMatthieu Patou1-2/+2
2010-08-19s4 upgradeprovision: add more attrbutes the ignore listMatthieu Patou1-0/+11
Also format in a pretty way the int64 ranges
2010-08-19s4 upgradeprovision: upgrade_delta_samdb return a msg_diff of @ATTRIBUTESMatthieu Patou1-9/+14
This is used by upgradeprovision to readd this delta just before loading a merged schema
2010-08-19s4 upgradeprovision: Fixes for increment_keyversionMatthieu Patou1-1/+2
fix
2010-08-19s4 upgradeprovision: fix a typo and pass correct parameter to ↵Matthieu Patou1-1/+1
increment_calculated_keyversion
2010-07-15s4 upgradeprovision: introduce a new function to update the field use for ↵Matthieu Patou1-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>
2010-07-15s4 provision: move update_machine_account_password to helpersMatthieu Patou1-1/+44
This is to allow reuse of this function and also unit tests Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-06-25s4 upgradeprovision: Try to support older Pythons.Michael Wood1-1/+1
Use "...".split(sep, 1) instead of "...".partition(sep). Signed-off-by: Matthias Dieter Wallnöfer <mdw@samba.org>
2010-06-24s4-python: python is not always in /usr/binAndrew Tridgell1-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>
2010-06-20s4-python: Remove more unused imports, fix use of sets in upgradehelpers.Jelmer Vernooij1-2/+2
2010-06-20Use standard Python syntax, booleans and set()'s where appropriate.Jelmer Vernooij1-12/+12
2010-06-20Some more formatting fixes, move schema related functions from Ldb to Schema.Jelmer Vernooij1-1/+3
2010-06-20Formatting cleanups; use True/False for booleans, unnecessary backslashes, ↵Jelmer Vernooij1-16/+23
spacing.
2010-06-20s4 upgradeprovision: Make grouped commit / rollback more resistant to ↵Matthieu Patou1-13/+42
unexpected problems Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20s4 upgradeprovision: Check that the policy for DC is present if not warn the ↵Matthieu Patou1-0/+24
user Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20s4 upgradeprovision: Emit message instead of crashing when not able to set aclMatthieu Patou1-4/+10
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20s4 upgradeprovision: Add function for searching stored constructed attributesMatthieu Patou1-0/+51
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20s4 upgradeprovision: additional restylingMatthieu Patou1-31/+42
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20s4 upgradeprovision: Move functions to helpers and improve codeMatthieu Patou1-10/+250
Among code improvement the most significant part is that we now compare DN object instead of their string representation. It allow to better react to case an white space difference. Some new move objects have been added (ie. System into well known security principals). This will allow more unittesting Signed-off-by: Jelmer Vernooij <jelmer@samba.org>