52d64c53b9
s4-python: Add some more module docstrings.
2010-12-05 17:27:05 +01:00
37bfc4ec38
s4-samba-tool: fixed exception handling in subcommands
...
this switches to the new pattern of:
except Exception, e:
raise CommandError("some error message", e)
2010-11-29 18:04:42 +11:00
20516df275
samba.upgradehelpers: Simplify code a bit.
2010-11-28 17:23:27 +01:00
a7675bd501
s4-python: Fix formatting of docstrings for the purpose of pydoctor.
2010-11-28 05:00:06 +01:00
e0f64b77eb
python: use the ldbMessage + modify notation instead of modify_ldif that we try to avoid
2010-11-12 19:40:21 +00:00
a9c430bdd2
upgradeprovision: fix pb with dns-hostname, regenerate a correct keytab
2010-11-12 19:40:21 +00:00
2403aaa759
s4:upgradehelpers.py - use "clearTextPassword" rather than "userPassword"
...
It's the default internal s4 password change attribute
2010-11-11 09:12:25 +01:00
69ef2b3705
upgradeprovision: use the same case for hostname in reference provision as 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-09-26 01:21:52 +00:00
6e7d684462
s4 provision: Add some documentation to GPO related functions
2010-08-19 15:59:05 +04:00
a5653bcf83
s4 upgradeprovision: add more attrbutes the ignore list
...
Also format in a pretty way the int64 ranges
2010-08-19 15:59:05 +04:00
eaf1d050fe
s4 upgradeprovision: upgrade_delta_samdb return a msg_diff of @ATTRIBUTES
...
This is used by upgradeprovision to readd this delta just before loading
a merged schema
2010-08-19 15:59:04 +04:00
3e49b20cf0
s4 upgradeprovision: Fixes for increment_keyversion
...
fix
2010-08-19 15:59:04 +04:00
503824b757
s4 upgradeprovision: fix a typo and pass correct parameter to increment_calculated_keyversion
2010-08-19 15:59:04 +04:00
9323901644
s4 upgradeprovision: introduce a new function to update the field use for 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-15 22:08:21 +10:00
fd2eb0dfd0
s4 provision: move update_machine_account_password to helpers
...
This is to allow reuse of this function and also unit tests
Signed-off-by: Andrew Bartlett <abartlet@samba.org >
2010-07-15 22:08:20 +10:00
92cfc63287
s4 upgradeprovision: Try to support older Pythons.
...
Use "...".split(sep, 1) instead of "...".partition(sep).
Signed-off-by: Matthias Dieter Wallnöfer <mdw@samba.org >
2010-06-25 08:46:13 +02:00
4cb423f527
s4-python: python is not always in /usr/bin
...
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-24 18:46:57 +10:00
8f383fc5c8
s4-python: Remove more unused imports, fix use of sets in upgradehelpers.
2010-06-20 13:15:09 +02:00
3795358aca
Use standard Python syntax, booleans and set()'s where appropriate.
2010-06-20 12:06:50 +02:00
94e06fe203
Some more formatting fixes, move schema related functions from Ldb to Schema.
2010-06-20 02:46:57 +02:00
afad634207
Formatting cleanups; use True/False for booleans, unnecessary backslashes, spacing.
2010-06-20 01:57:11 +02:00
38a26f79ea
s4 upgradeprovision: Make grouped commit / rollback more resistant to unexpected problems
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org >
2010-06-20 00:43:09 +02:00
c4f7b0e5f6
s4 upgradeprovision: Check that the policy for DC is present if not warn the user
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org >
2010-06-20 00:43:09 +02:00
aea0003d08
s4 upgradeprovision: Emit message instead of crashing when not able to set acl
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org >
2010-06-20 00:43:09 +02:00
75389cecdd
s4 upgradeprovision: Add function for searching stored constructed attributes
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org >
2010-06-20 00:43:08 +02:00
9c5f0ed729
s4 upgradeprovision: additional restyling
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org >
2010-06-20 00:43:08 +02:00
fbeacc1013
s4 upgradeprovision: Move functions to helpers and improve code
...
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 >
2010-06-20 00:43:08 +02:00
ad55248958
s4 upgradeprovision: move some functions to upgradehelpers for unit tests
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org >
2010-06-20 00:43:08 +02:00
50072e27fe
s4 Add functions related to ldb manipulation when doing upgrade
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org >
2010-06-20 00:43:07 +02:00
d9d0d54475
upgradeprovision: Use logging infrastructure.
2010-06-13 18:19:03 +02:00
3552ad3ab1
upgrade: Properly cancel/commit transactions in a couple more places.
2010-06-13 18:19:03 +02:00
956a256faa
s4-python: Start using standard python logging infrastructure rather
...
than simple messaging callbacks.
2010-06-13 18:19:03 +02:00
c446fbc3bf
s4-python: Fix formatting.
2010-06-11 01:47:55 +02:00
7a6f1c7842
s4-python: Fix formatting, use standard convention to call instance methods.
2010-04-08 23:20:36 +02:00
d7a46ee129
s4-python: Simplify code, improve formatting.
2010-04-08 23:20:36 +02:00
31a517e172
s4-python: Move dsdb constants to a separate python module.
2010-04-04 00:14:23 +02:00
86e2b25186
More formatting fixes, pointed out by pylint.
2010-03-01 16:24:58 +01:00
31a718aa27
General cleanups of python code, hinted by pyflakes.
2010-03-01 04:46:51 +01:00
20e1d5a72e
More formatting fixes.
2010-03-01 03:41:52 +01:00
44c2d696bd
Fix formatting.
2010-03-01 03:29:47 +01:00
93d377424a
upgradeprovision: Remove unused imports, use shutil.rmtree rather than
...
rmall.
2010-03-01 03:25:07 +01:00
254e007bd9
upgradeprovision: Move to pythondoc format
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org >
2010-03-01 03:20:36 +01:00
5054bdb4f2
upgradeprovision: code cleanup
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org >
2010-03-01 03:20:36 +01:00
3bd16415d2
upgradeprovision: split the big script to put reusable functions appart
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org >
2010-03-01 03:20:36 +01:00