Matthieu Patou
3e49b20cf0
s4 upgradeprovision: Fixes for increment_keyversion
...
fix
2010-08-19 15:59:04 +04:00
Matthieu Patou
503824b757
s4 upgradeprovision: fix a typo and pass correct parameter to increment_calculated_keyversion
2010-08-19 15:59:04 +04:00
Matthieu Patou
7b41969603
s4 upgradeprovision, fix a typo preventing the ridset to be correctly identified
2010-08-10 00:57:20 +04:00
Matthieu Patou
36b5feceee
s4 upgradeprovision: Adapt the list of attribute modified
...
* isMemberOfPartialAttributeSet is now allowed to be deleted (on schema
objects)
* attributeDisplayNames is now allowed to be added and modified (used on
display specifiers)
* spnMapping is now allowed to be altered on Directory Service objects
* minPwdAge is now modified if the previous value was 0
We issue a clear information about the userControl attribute for
administrator to invite the user to modify himself the value.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-15 22:08:21 +10:00
Matthieu Patou
7478224189
s4 upgradeprovision: Synchronize the calculated keyversionnumber with the one previously stored
...
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-15 22:08:21 +10:00
Matthieu Patou
0a1b1121c4
s4 upgradeprovision: do not copy RID Set it's automaticaly created by the RID manager
...
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-15 22:08:21 +10:00
Matthieu Patou
2afc2f20b6
s4 upgradeprovision: add function to backup the provision before updating
...
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-15 22:08:21 +10:00
Matthieu Patou
6c51b3a432
s4 upgradeprovision: fix whitespaces
...
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-15 22:08:21 +10:00
Matthieu Patou
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
Matthieu Patou
61be498adb
s4 upgradeprovision: For SID > 1000 do not copy them, let the system regenerated a new one
...
This should avoid colliion with newly added objects that use the same
SID as existing users in the upgraded provision.
Signed-off-by: Matthias Dieter Wallnöfer <mdw@samba.org>
2010-07-08 19:28:42 +02:00
Matthias Dieter Wallnöfer
560620a53d
s4:upgradeprovision - fix include order for "ldb"
...
Patch originally posted on the list by Matthieu Patou.
2010-06-24 10:04:52 +02:00
Matthieu Patou
32f82fbec0
s4 upgradeprovision: fix the logging stuff so that it actually log
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-21 23:11:50 +02:00
Jelmer Vernooij
94e06fe203
Some more formatting fixes, move schema related functions from Ldb to Schema.
2010-06-20 02:46:57 +02:00
Jelmer Vernooij
afad634207
Formatting cleanups; use True/False for booleans, unnecessary backslashes, spacing.
2010-06-20 01:57:11 +02:00
Jelmer Vernooij
b48182007c
s4-python: Remove trivial function, replace by dictionary.
2010-06-20 01:30:51 +02:00
Matthieu Patou
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
Matthieu Patou
17af115de5
s4 upgradeprovision: add an option to force the rebuilding of FS ACLs on sysvols share
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 00:43:09 +02:00
Matthieu Patou
423f99172e
s4 upgradeprovision: Restyle imports
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 00:43:08 +02:00
Matthieu Patou
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
Matthieu Patou
84342b1c7f
s4 upgradeprovision: Add documentation on the update process
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 00:43:08 +02:00
Matthieu Patou
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
Matthieu Patou
0537de17c1
s4 upgradeprovision: Fix style
...
reformat *_update_samdb functions
fix_partition_sd
rebuild_sd
update_samdb
update_privilege
update_machine_account_password
update_gpo
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 00:43:08 +02:00
Matthieu Patou
b624440a0f
s4 upgradeprovision: Use replPropertyMetaData for better guess
...
Rework upgradeprovision in order to get more precise updates when doing upgrade provision.
This is done through the use of replPropertyMetaData information and raw information revealed by the
"reveal" control.
The code has been changed also to avoid double free error when changing the schema (for old provision).
Checking of SD is done a bit more cleverly as we compare the different parts for an ACL separately.
Fix logic when upgrading provision without replPropertyMetaData infos
Also for old provision (pre alpha9) do not copy the usn range because data here will be wrong
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 00:43:08 +02:00
Matthieu Patou
dd963ddb4e
s4 upgradeprovision: Reformat attributes lists and reformat parser
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 00:43:08 +02:00
Matthieu Patou
60400a7803
s4 upgradeprovision: Inform about new dns dynamic update if the provision didn't have it
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 00:43:07 +02:00
Matthieu Patou
26ccc3f440
s4 upgradeprovision: fix style
...
add_deletedobj_containers
add missing objects
clean add-mising
handle special add + dump denied
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 00:43:07 +02:00
Matthieu Patou
0ff46ec557
s4 upgrade provision: Refactor code to do all the modification within 1 transaction
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 00:43:07 +02:00
Matthieu Patou
ec90b1b40e
s4 upgrade provision: Fix style in gen_dn_index
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 00:43:07 +02:00
Jelmer Vernooij
d9d0d54475
upgradeprovision: Use logging infrastructure.
2010-06-13 18:19:03 +02:00
Jelmer Vernooij
3552ad3ab1
upgrade: Properly cancel/commit transactions in a couple more places.
2010-06-13 18:19:03 +02:00
Jelmer Vernooij
956a256faa
s4-python: Start using standard python logging infrastructure rather
...
than simple messaging callbacks.
2010-06-13 18:19:03 +02:00
Andrew Tridgell
5e695dec2a
s4-upgradeprovision: fixed --realm option duplicate in upgrade_from_s3
2010-04-21 13:35:56 +10:00
Jelmer Vernooij
dd4ef4e106
s4-python: More cleanups.
2010-04-08 23:20:36 +02:00
Jelmer Vernooij
d7a46ee129
s4-python: Simplify code, improve formatting.
2010-04-08 23:20:36 +02:00
Jelmer Vernooij
21ab06f8a2
s4-python: Move samdb_ntds_objectGUID to pydsdb.
2010-04-07 17:39:59 +02:00
Jelmer Vernooij
ba74823c8f
upgradeprovision: Fix formatting, syntax error.
2010-03-28 22:58:36 +02:00
Matthieu Patou
d18d7cfa27
s4 upgradeprovision: add information about upgrade in oEMInformation to keep a better trace of different updates
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-03-28 22:54:08 +02:00
Matthieu Patou
8d3ff2d41e
s4: allow upgrade provision to fix acl and missing dir on GPO dirs
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-03-28 22:54:08 +02:00
Andrew Tridgell
088096d1ba
python: use '#!/usr/bin/env python' to cope with varying install locations
...
this should be much more portable
2010-03-25 14:37:19 +11:00
Jelmer Vernooij
20e1d5a72e
More formatting fixes.
2010-03-01 03:41:52 +01:00
Jelmer Vernooij
44c2d696bd
Fix formatting.
2010-03-01 03:29:47 +01:00
Jelmer Vernooij
93d377424a
upgradeprovision: Remove unused imports, use shutil.rmtree rather than
...
rmall.
2010-03-01 03:25:07 +01:00
Matthieu Patou
254e007bd9
upgradeprovision: Move to pythondoc format
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-03-01 03:20:36 +01:00
Matthieu Patou
8f1f50daa5
upgradeprovision: Allow script to be called with pydoc
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-03-01 03:20:36 +01:00
Matthieu Patou
2bc3631db8
upgrade provision: change the meaning of handle_security_desc to be similar to handle_special_case
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-03-01 03:20:36 +01:00
Matthieu Patou
5054bdb4f2
upgradeprovision: code cleanup
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-03-01 03:20:36 +01:00
Matthieu Patou
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
Stefan Metzmacher
27e7578e27
s4:provision: use generate_random_password()
...
metze
2010-02-26 08:57:30 +01:00
Matthieu Patou
8c6fc09f18
upgradeprovision: forbid running upgradeprovision when there is more than 1 DC
2010-01-21 07:11:21 +13:00
Matthieu Patou
929dbf8ef8
upgradeprovision: mark rIDAvailablePool never upgraded
...
handle properly the fact that missing object might depend on some other in order to be correctly created
debug change also if we are in debugall mode
2010-01-21 07:11:20 +13:00